We use process builder heavily and sometimes I need to go and see what is there in the Inactive ones. I prefer downloading all flows(including Inactive) and searching in vs code.
I tried the below two commands and both are retrieving only the active version.
sfdx force:source:retrieve --metadatatype=Flow
sfdx force:source:retrieve --metadatatype=FlowDefinition
How do I download the active and inactive versions?
Best Answer
The versioned
FlowDefinition
object is no longer recommended as of API 44.0, in favor of the unversionedFlow
, which is the point at which behavior around Flow versions changed in the Metadata API.Using API version 43.0 or prior to retrieve
FlowDefinition
should return the original versioned files.