Skip to content

Commit 344cdaf

Browse files
Merge pull request #173 from texei/flow-to-subflow
Added "sf texei source flow convert" command
2 parents 88f409a + 76a45e2 commit 344cdaf

File tree

8 files changed

+6325
-1229
lines changed

8 files changed

+6325
-1229
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# summary
2+
3+
Convert a Flow to a Subflow
4+
5+
# description
6+
7+
This command converts a record-triggered flow to a subflow, either by overriding it (default behavior) or saving it to a new file.
8+
If the source Flow has Entry Conditions there are not kept (subflows don't have entry conditions) and a warning is displayed.
9+
10+
# flags.name.summary
11+
12+
Name of the Flow to convert
13+
14+
# flags.path.summary
15+
16+
Path of flows folder (default: force-app/main/default/flows)
17+
18+
# flags.path.save-to-file-name
19+
20+
Name of for new Flow file. If not provided, converted source Flow is overridden
21+
22+
# examples
23+
24+
- sf texei source flow convert --name My_Flow --save-to-file-name My_Converted_Flow
25+
26+
# warning.beta
27+
28+
This command is in BETA, test the converted Flow, and report any issue at https://github.com/texei/texei-sfdx-plugin/issues
29+
30+
# warning.filters
31+
32+
The source Flow has Entry Conditions that can't be moved to Subflow, review them and add them either as a decision node or to the parent Flow according to the needs
33+
34+
# error.no-scheduled-paths
35+
36+
The source Flow has Scheduled Paths, which are not possible in subflow. Review your Flow manually.

0 commit comments

Comments
 (0)