Skip to content

Commit

Permalink
docs: fix destructiveChanges ref
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Rolke <[email protected]>
  • Loading branch information
scolladon and amtrack authored Jul 31, 2024
1 parent 738b122 commit c2bd8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ Please do not assume committing a flow metadata deletion to the repo, and then r
We suggest to deal with flow deletion in one go by following those steps (it requires the `FlowDefinition` metadata which is not available in API `v44+`)
1. Set the `FlowDefinition` `activeVersionNumber` to `0`
2. List the `FlowDefinition` in a `package.xml`
3. List all the existing version of the `Flow` in a `destructiveChanges.xml` (can be fetch via SOQL using this query : `SELECT FlowDefinitionView.ApiName, VersionNumber, Status FROM FlowVersionView WHERE FlowDefinitionView.ApiName='<FLOW_API_NAME>'`)
3. List all the existing version of the `Flow` in a `destructiveChangesPost.xml` (can be fetch via SOQL using this query : `SELECT FlowDefinitionView.ApiName, VersionNumber, Status FROM FlowVersionView WHERE FlowDefinitionView.ApiName='<FLOW_API_NAME>'`)
4. Deploy this `FlowDefinition` with a `package.xml` and post delete all the `Flow` versions with a post `destructiveChangesPost.xml`
Example to delete the Flow `Set_Account_Description` :
Expand Down

0 comments on commit c2bd8ee

Please sign in to comment.