Create Object Workflow on the Contact Object
Use this topic to create an object workflow on Contact object.
-
In Application Composer, expand Common Setup, then select Object Workflows.
-
Click the Create (+) icon.
-
Click the Object drop down list, and select Contact.
-
In the Name field, enter: SyncContactAttributesToIdcsWf.
-
For Event Point and Condition, select: When a record is updated.
-
Click in the Condition field, then click the Groovy builder icon.
-
Copy and paste the following code in the Expression Builder, then click OK.
if (ContactRole == 'SERVICE' && (isAttributeChanged('PersonFirstName') || isAttributeChanged('PersonLastName')) ) return true; else return false;
-
Click the Create button of the Groovy Script Action.
-
In the Name field, enter:
SyncContactAttributesToIdcsGs
. -
In the Method Name drop down list, select
SyncContactAttributes
. -
Click Save, and then click Save and Close.