Automate matter stage with Process Builder to pre-determine matter stages based on case criteria. For this example, we'll build a process that automatically changes the matter stage to the Trial stage. Follow this guide, or determine any type of matter stage automation you need for your firm's best practices.

You may also want to create a process that begins a new matter at a specific matter stage based on criteria.

 

Here's how:


1. Visit Setup by clicking the ms1.png in the upper-right corner and clicking Setup.  

2. Search for Process Builder in the Quick Find Box and select it.

3. In the upper-right corner of the "My Processes" window, click New


ms2.png



4. The "New Process window" opens.


a. Name your process "Change Matter Stage to Trial."
b. Describe the process.
c. Select to start the process when A record changes. Click Save


 ms3.png
 



5. Visually design the process in Process Builder.  First, click + Add Object to select the type of object this process involves.


ms4.png



6. Complete the "Choose Object and Specify When to Start the Process" window.


a. Select the Matter object.
b. Select to start the process when a record is created or edited. If you want to create a process to open a matter to a specific stage, select only when a record is created.

ms5.png




7. In the process builder window, click + Add Criteria. The "Define Criteria" window opens.


a. Criteria Name is Field Update.
b. Set the Criteria for Executing Actions: Conditions are met.

 

ms6.png




8. Set the conditions.


a. Choose the Matter Status field.
b. Select the Equals operator.
c. Select the Picklist type.
d. Select the Deferred value.


ms7.png




9. Back in the process builder window, click + Add Action. The "Select and Define Action" window opens. 


a. Select Apex in the Action Type dropdown list. 
b. Name your action Set Matter Stage
c. Select Change Matter Stage in the Apex Class dropdown list.


ms8.png



10. Next, set the Apex Variables.

a. Select matterIds in the Field dropdown list.
b. Select Formula in the Type dropdown list. 
c. Click the Value field to enter the correct value: [Matter_ _c].Id
d. Once you've set your apex variables, click Use this Formula.


ms9.png




11. Click + Add Row. Complete the second row of Apex variables.


a. Select stageTemplateIds in the Field dropdown list.
b. Select ID in the Type dropdown list.
c. Select the Record ID of the Matter Activity Stage to which this process will guide users. This value depends on your org. For this example, the value of the Record ID of the Trial stage in this org is a0N41000001002qEAA. Select the correct Record ID in your org.


ms10.png




12. Click Save to complete this step. Your process builder should look like this: 


ms11.png



13. Activate the process.


a. In the upper-right corner, click Activate.
b. On the Activate window, Click Confirm.



 

Additional information


Review Salesforce documentation for additional information and background about the Lightning Process Builder.





 

Was this article helpful?
0 out of 0 found this helpful