---
schema_version: "1"
id: 24551594f65c45807c4b7e41f5cc60ca6fb05c829191cf5a049d01758dcd580c
title: Configure Objects and Triggers
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_co_configure_objects_and_triggers.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_co_configure_objects_and_triggers.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6b8ef5ed001b8e200db32dea883b1d3aecf3d9cc55daa7a75185515d3ae7eb1f
description: Complete the steps to create triggers, enable objects, and configure triggers with Marketing Cloud Connect for Marketing Cloud Engagement.
products:
  - Marketing
  - Cross Cloud
release: "264"
---
# Configure Objects and Triggers

Complete the steps to create triggers, enable objects, and configure triggers with Marketing Cloud Connect for Marketing Cloud Engagement.

Permission for Triggered Sends Configuration is required to complete these tasks.

1. From Sales or Service Cloud, click **Setup**.
2. Under Build, click **Customize**.
3. Select the object.
4. Click **Triggers**.
5. Click **New**.
6. In the Apex Trigger window, select **Is Active**.
7. Enter the following code, substituting the desired object name where indicated with **Object Name**.
    
    ```html
    trigger Trig_Object Name on Object Name (after insert, after update) { et4ae5.triggerUtility.automate('Object Name'); }
    ```
    
    For example:
    
    ```html
    trigger Trig_Lead on Lead (after insert, after update) { et4ae5.triggerUtility.automate('Lead'); }
    ```
8. Save the trigger.
    
    The trigger is created for the object.
9. Click the **Marketing Cloud** tab.
10. Click **Configure Marketing Cloud Connect**.
11. Click **Edit Settings**.
12. Under Triggered Sends, select **Restriction** to set user permissions and restrictions.
13. Under Triggered Sends, add **Enabled Objects** to be used for triggered sends.
14. Save the settings and selections.
    
    The restrictions are set and objects enabled.

- **[Use Apex to Create Triggers](https://help.salesforce.com/s/articleView?id=mktg.mc_co_use_apex_to_create_triggers.htm&release=264.0.0&type=5)**  
    A trigger is Apex code that executes before or after the following types of operations: insert, update, delete, merge, upsert, and undelete. Developer environments, sandboxes, and trial orgs can create, edit, and delete Apex classes and triggers directly in the Salesforce CRM user interface. Unlimited Edition and Enterprise Edition production orgs can execute and view Apex in the user interface, but modifying Apex in the user interface is not allowed.