Salesforce Process Builder allows you to build complex flows without code.
Emma for Salesforce provides actions that work with Process Builder allowing you to:
- Add a Contact or Lead to an Emma Group
- Remove a Contact or Lead from an Emma Group
- Delete a Contact or Lead from Emma
Process builder is an advanced topic. To learn more, please refer to the Salesforce Trailhead guide on how to use the Salesforce process builder. Automate Simple Business Processes with Process Builder .
Use the steps below to create your Process Builder flow:
Process builder does not work well when triggered in bulk i.e. when many records meet the flow criteria at once. Only use process builder if you are comfortable with how it works and have tested your flows.
Click Add Action.
Choose Apex on Action Type.
Give the Action a Name.
In Apex Class start to type this will display our process builder ready actions:
a. Add Contact to Emma Group
b. Add Lead to Emma Group
c. Delete a Contact from Emma Audience
d. Delete a Lead from Emma Audience
e. Remove Contact from Emma Group
f. Remove Lead from Emma Group
When working with the add, delete or remove rules you will need to specify either the Contact or Lead ID depending on what object you are working with. The Contact or Lead ID is simply the Salesforce record ID.
The group id can be found on the Emma Group on the Details screen under the collapsed system information.