Configuring Standard Objects: Explained

Adding fields to a standard object is very similar to Adding Fields to a Custom Object. To add a field to a standard object do the following:

  1. Click Navigator, and then select Application Composer.

  2. Select the object, and then click Fields.

  3. On the Fields page, click the Create a custom field icon.

  4. In the Select Field Type dialog box, select the appropriate field type, and then click OK.

  5. In the Create Object_Type Field window, enter the parameters, and then click OK.

  6. Repeat the previous steps for other fields as necessary.

Adding Actions and Links to an Object

Use the following procedure to add actions and links to an object.

  1. Click Navigator, and then select Application Composer.

  2. Select the object, and then click Actions and Links.

  3. On the Object_Name: Actions and Links page, click the Create icon.

  4. Enter the display label, name, and description.

  5. Select the type, Action or Link.

  6. Select the source:

    • Script. Select a method name, or click the New icon to enter a new object function.

    • URL. Define a URL expression.

  7. Click Save.

  8. Repeat the previous steps to add other actions or links as necessary.

Creating Triggers for an Object

Triggers are created in the Triggers tab of the Server Scripts section of the object definition in the Application Composer. Triggers for the integration are generally defined in Groovy script files. At the beginning of each file, a set of comments is listed in the following order:

  • Type (object or field)

  • Trigger

  • Name

  • Error message

Following the comments, the trigger definition is listed. The Groovy files are listed after the triggers to be created for specific objects.

Use the following general procedure to create triggers for objects.

  1. Click Navigator, and then select Application Composer.

  2. Expand the object for which you want to create a trigger, and then click Server Scripts.

  3. In the Server Scripts window, click the Triggers tab.

  4. Click the Add a new Trigger icon for Object Triggers or Field Triggers.

    The Create Object Trigger or Create Field Trigger window appears.

  5. Select the trigger from the drop-down list, and then enter the name.

    The trigger and name come from the second and third comments in the Groovy file, respectively.

  6. In the Error Message area, enter the error message, if any is provided.

  7. Copy or enter the Groovy code from the file into the Trigger Definition window.

  8. Click Save and Close.