fix: add workflow flow actions to decomposed workflow preset and allow isAddressable #1467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Updates the decomposed workflow preset to add the child type: Workflow Flow Actions
In the current decomposed preset, Workflow Flow Actions are added to the
*.workflow-meta.xml
file instead of decomposed into their own directory and smaller files.This is causing issues deploying decomposed workflow children, as Salesforce CLI appears to check the
*.workflow-meta.xml
file even when deploying just 1 decomposed workflow child like an email alert. Since the*.workflow-meta.xml
isn't "empty", I'm unable to deploy just a decomposed WorkflowAlert for example.Also, the "isAddressable: false" key in each supported decomposed workflow child is preventing each decomposed workflow child from being retrieved or deployed without the parent.
After working with @shetzel via CLI Issue 2563, updating the preset to remove all
isAddressable: false
lines and manually add workflow flow actions to the preset fixes my issue retrieving and deploying decomposed workflow children. I've tested this out in my work's repo, which has tons of workflows with workflow flow actions.Let me know if your team wants to make this a
beta2
instead of modfying an existingbeta
. Since I'm not changing the overall decomposed workflow structure, just adding a missing child and fixing the addressable feature, I think it makes sense to me to just update thebeta
preset.What issues does this PR fix or reference?
forcedotcom/cli#2563
Functionality Before
Decomposed workflow children besides Flow Actions are decomposed into their own sub-directories and files.
Flow actions are added directly to the
*.workflow-meta.xml
files.Retrieves can work but deployments fail because it's seeing the Flow Action in the
*.workflow-meta.xml
file andisAddressable
is false, so I can't deploy the child without the parent file.Functionality After
All decomposed workflow children including Flow Actions are decomposed into their own sub-directories and files.
The
*.workflow-meta.xml
file just contains the workflow header/footer.Retrieving and deploying individual workflow children including Flow Actions works with Salesforce CLI.