sfdx-hardis icon indicating copy to clipboard operation
sfdx-hardis copied to clipboard

Bulkify flow deletions

Open przemekrcloudity opened this issue 9 months ago • 2 comments

Today I used this plugin to delete obsolete flows and I had over 150 flow versions to delete and it took around 10 minutes to execute (still a LOT faster than manually deleting flows). If I understand correctly, command for flow deletions calls sfdx to delete flow versions using tooling API. Is there a way to bulkify this process? Tooling API supports bulk deletions (but to be fair I haven't used it for flow deletions so I can't guarantee it will work in this application). If this doesn't work maybe using composite API woudl be good idea?

przemekrcloudity avatar Sep 08 '23 09:09 przemekrcloudity

When I created the command I tried to but didn't succeed with included SDK (I probably did not look for long)

I think we need to create a CSV then call the tooling bulk API, would you like to make a PR ? :)

nvuillam avatar Sep 08 '23 10:09 nvuillam

@nvuillam I am sorry but due to my responsibilities, I don't have any free time :(, I am just sharing ideas for improvement

przemekrcloudity avatar Sep 08 '23 11:09 przemekrcloudity