Retrieving Process builder Flows via BulkRetrieve in ANT does not retrieve the Flow file
Last updated 2022-02-15 ·Reference W-2664111 ·Reported By 43 users
In Review
Summary
When BulkRetrieve functionality is used to retrieve Flows created by Process Builder, the operation does not create the "Flow" file.
The operation will create the Folder with name "Flow" (which will have no contents) as well as Package.xml.
You will be able to see a warning message : Entity of type 'Flow' named '<Flow-Name>' cannot be found
Repro
- Create a Flow using Process Builder.
- Name the Flow as "Test_Flow1".
- Create this BulkRetrieve command in your Build.xml file :
<target name="bulkRetrieve">
<sf:bulkRetrieve username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" metadataType="${sf.metadataType}" retrieveTarget="Bulk"/>
</target>
- Create a Directory/Folder by the name "Bulk" in the Folder from where you are running ANT Migration Tool commands.
- Put the below parameters in the Build.properties file :
sf.username = <Username for the Org>
sf.password = <Password+Security Token>
sf.serverurl = < Login URL, i.e. https://test.salesforce.com or https://login.salesforce.com >
sf.metadataType = Flow
- Run the command via "ant bulkRetrieve".
- You will see this warning in the Logs : "Entity of type 'Flow' named 'Test_Flow1' cannot be found"
- If you check under "Bulk" folder, you will see Package.xml which got generated and a folder named "Flow".
- However, folder will not have any contents even though the name of Flow is visible in Package.xml file.
Workaround
To retrieve Flow created by Process Builder, use normal Retrieve commands and Package.xml
Reported By (43)















Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.