Create an Object Function on the Contact Object

Use this topic to create an object function on the contact object.

  1. In Application Composer, expand the Standard Objects node, and then expand Contact.

  2. Click Server Scripts, and then click the Object Functions tab.

  3. Click the Add a new Object Function icon.

  4. 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.

  5. 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)
  6. Click Save and Close.