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:
readMetadata call to get the active version number:
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!
@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:
readMetadata call to get the active version number:
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!