Exporting a flow (without service password)

When we export a flow, credentials of any service integration that is used in the flow are also exported by default. For example, if we have a flow that uses Salesforce for authentication, our Salesforce credentials will also get exported as part of the flow.

If we want to export the flow, but not the service credentials, here is how we can do it:

  1. Publish the flow.
  2. Note the Flow ID. If we want to export a specific version of the flow, we note the Flow Version ID as well. (If the Version ID parameter is not provided, the latest version of the flow will get exported).
  3. Click Home and select API.

    This opens the Flow API editor.
  4. In the URL field, copy-paste api/package. This pulls up a list of API endpoints.
  5. Select the api/package/1/flow/{id}?nullPasswords={null_passwords} endpoint. 

    If we want to export a specific version of the flow, we select  api/package/1/flow/{id}/{version_id}?nullPasswords={null_passwords}.
  6. Replace {id} with the Flow ID that we copied. (We will replace {version_id} with the Version ID of the flow if we are exporting a version of the flow.)
  7. Replace {null_passwords} with true

  8. Click GET. This populates the Response column with a response body containing a string with the flow and all its dependencies as a package. We also get an alert message that says GET to api/package/1/flow/c4b273fd-231b-49f2-b1f2-843f3a768dc6?nullPasswords=true completed successfully.
  9. Copy the text from the Response column, paste it to a text editor, and save it.

We can import this file to a tenant, and populate it with new service credentials.

NOTE // 

This procedure will export the user name, but not the password of the service integration. We can change the value of the username and update the service with new credentials, before using the flow.