How to deploy Processes in Process builder using ANT?

How to deploy Processes in Process builder using ANT?

This post helps you learn how to deploy Processes in Process builder using ANT. Processes are stored as Flows in metadata. Use the below markup in your package.xml to deploy Process.

Where FLOW_NAME  is combination of API Name and version of the process. Below screenshot explains how to give the FLOW_NAME.

Note!: Even if you are deploying an active process, the process will be deployed in in-active status in target environment. So, you have to activate the process in target environment manually once it get's deployed.

Where can I notice the syntax of FLOW_NAME?
You can observe the syntax of FLOW_NAME when you upload the process using change set. To add a process to change set, select the component type as Flow Definition.

After uploading the changeset, you can see a change in Type and API Name  of the component.
Did you observe one more thing from the screenshot? Though there are two versions of the process, only the latest version is uploaded.

Why is this difference in component type?
FlowDefinition is a set of flow versions. You can't create a flow definition directly through the API. A flow definition is created automatically when you create a new flow version.

Comments

Post a Comment

Popular posts from this blog

New Beta Architect Certifications by Salesforce

Deploy profile metadata changes easily with simple Python script