4

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?

1
  • 2
    From what I've seen, post-43 MDAPI does not retrieve the active version: it gets the latest version, active or not. This means, quite horrifyingly, that if there is an inactive version newer than the active one, you cannot see the metadata of the active version at all.
    – Charles T
    Nov 27, 2019 at 3:43

1 Answer 1

3

The versioned FlowDefinition object is no longer recommended as of API 44.0, in favor of the unversioned Flow, 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.

1
  • 3
    But with the big caveat: Any features that are post-43 in your Flows or PBs will be retrieved unreliably.
    – Charles T
    Nov 27, 2019 at 3:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .