Skip to content

Commit

Permalink
docs: take feedback from @mehdicherf
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon committed Jul 31, 2024
1 parent fc5cfe0 commit 738b122
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ 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 the `package.xml`
3. List all the existing version of the `Flow` in the `destructiveChanges.xml` (can be fetch via SOQL using this query : `SELECT FlowDefinitionView.ApiName, VersionNumber, Status FROM FlowVersionView WHERE FlowDefinitionView.ApiName='<FLOW_API_NAME>'`)
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>'`)
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 All @@ -552,7 +552,7 @@ Example to delete the Flow `Set_Account_Description` :
</FlowDefinition>
```
1. List the `FlowDefinition` in the `package.xml`
2. List the `FlowDefinition` in a `package.xml`
```xml
<!--package.xml-->
Expand All @@ -566,7 +566,7 @@ Example to delete the Flow `Set_Account_Description` :
</Package>
```
3. List all the existing version of the `Flow` in the `destructiveChangesPost.xml`
3. List all the existing version of the `Flow` in a `destructiveChangesPost.xml`
```xml
<!--destructiveChangesPost.xml-->
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const message = {
errorPathIsNotFile: `'%s' file does not exist`,
errorPathIsNotGit: `'%s' is not a git repository`,
warningApiVersionNotSupported: `API version not found or not supported, using '%s' instead`,
warningFlowDeleted: `Attempt to delete the flow '%s' via destructiveChanges.xml (see https://github.com/scolladon/sfdx-git-delta#handle-flow-deletion)`,
warningFlowDeleted: `Attempt to delete the flow '%s' via destructiveChanges.xml may not work as expected (see https://github.com/scolladon/sfdx-git-delta#handle-flow-deletion)`,
}

export default message

0 comments on commit 738b122

Please sign in to comment.