Processing an Assignment Rule Set Via the Process Builder
The following technique has been developed to provide organizations with the ability to automatically process an Assignment Rule Set from within the Process Builder.
Use the following custom Apex Class to facilitate using the Process Builder.
AdvoLogix Assignment Rules Apex Class
The following Apex method can be used to process an Assignment Rule Set via Process Builder.
Apex Class Name:
Required. The Id value of the base object's source record for which Assignment Rule should be processed.
Required. The Assignment Rule Set Id to be used for processing with the source record for predefined assignment actions.
Creating an Apex Action Type in Process Builder
To use this class in Process Builder, follow these steps as highlighted below:
- Go to Setup | Create | Workflows & Approvals | Process Builder, and Create a New Process and click Add Action.
Select Action Type as Apex.
Enter Action Name. This is your way of identifying the action in the list of actions.
Select AssignmentRulesService as Apex Class. Two parameters are automatically added to Set Apex Variables section.
Enter the field name of the Record ID field. This will normally be the Matter ID field but could also be the Contact or Account ID field name.
Enter the record ID of the Assignment Rule Set ID you wish to instantiate with this Action.