Create an Object Function on the Contact Object
Use this topic to create an object function on the contact object.
-
In Application Composer, expand the Standard Objects node, and then expand Contact.
-
Click Server Scripts, and then click the Object Functions tab.
-
Click the Add a new Object Function icon.
-
Use the following table to create the function:
Field
What You Do
Function Name
Enter:
syncContactAttributes
Visibility
Click the drop down list and select: Callable By External Systems.
-
In the Edit Script field, copy and paste the following script:
def contactPartyId = PartyId + "" def firstName = PersonFirstName def lastName = PersonLastName adf.util.syncContactAttributes(contactPartyId, firstName, lastName)
-
Click Save and Close.