benedwards44 / packagebuilder

Django + Heroku application for building a package.xml of your Salesforce Org
https://packagebuilder.herokuapp.com
MIT License
104 stars 81 forks source link

Fix for flow components without version number #12

Closed sfdcale closed 5 years ago

sfdcale commented 5 years ago

@benedwards44

listMetadata returns flow names without version number if flow is active but we need version number at the end to retrieve the flow.

To get the active version number for each flow, make another call to readMetadata with Metadata type as 'flowDefinition' and append the version number to flow.

Screenshot showing the actual problem:

selection_099

readMetadata call to get the active version number: selection_103

I made the changes to identify if there are any flows with version number missing at the end. If yes, it collects all those flows and makes call to readMetadata with size=10 and updates component with active version number at the end.

Let me know if you have any more questions.. Thanks!