Template Versioning introduces new template Ids, called Addressable Ids, that maintain the mapping between your automations and templates. When an Addressable Id is used in an automation, it will always point to the active template version. This article walks through how to update template references in a stitching Process Builder from Salesforce Ids to Addressable Ids.
Below are the high-level steps:
- Identify the template Salesforce Ids in your Process Builder
- Identify the template Addressable Ids
- Update your Process Builder
- Save & activate your Process Builder
Note: This article covers the common use case of stitching projects based on the Opportunity Products which setup is described in this article. Your org may have a custom configuration that needs to be adapted accordingly.
Step 1: Identify the template Salesforce Ids in your Process Builder
- From Setup, navigate to:
- Lightning: Process Automation | Process Builder
- Classic: Create | Workflows & Approvals | Process Builder
- Open your Process Builder for project creation (e.g. "Stitch Project")
- Inside the Process Builder, open the TaskRay apex action, Stitch a TaskRay Project.
- Record all Salesforce Ids in the Apex action from the following fields
- New Project Template Salesforce Id
- Task Group 1 Salesforce Id
- Task Group 2 Salesforce Id
- Task Group 3 Salesforce Id
- ...and so on
Step 2: Identify the template Addressable Ids
- In a new tab, open Reports.
- Under Folders, select All Folders | TaskRay Template Reports
- Open the Template Versioning Setup 1 report.
- Using the Salesforce Id(s) you recorded above in Step 1, find and record the corresponding Addressable Id(s) (e.g. "PT_RVSNBY1C5.PJ_sBZKF30r8")
Tip! Use Search to quickly find the Salesforce Project Id in the report.Note: If your template has multiple Task Groups, a count of the Task Groups will appear at the end of the Template Project Id in parenthesis e.g. "(3)" Do NOT record this; it is not a part of the Addressable Id.
Step 3: Update your Process Builder
- Go back to your Process Builder.
- Find the New Project Template Salesforce Id and switch it to New Project Template Addressable Id.
- Update the Value with the Addressable Id you recorded in the section above.
- Similarly, find the Task Group Salesforce Id and switch it to Task Group Addressable Id.
- Update the Value with the Addressable Id you recorded in the section above.
- Repeat Steps 4 & 5 for every Task Group in the apex action.
- Click Save.
Step 4: Save & activate your Process Builder
That's it! Save your changes and activate your Process Builder. Once activated, return to Setup Template Versioning utility in Tools and Settings to complete the setup process.