---
schema_version: "1"
id: 92ddd952af47b0166e3f5f403cfcf7ba2f1b532f1859c305cee1368de098d0cc
title: Extend Entry Source Data
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_dm_extend_entry_event_data.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_dm_extend_entry_event_data.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 86c16a92ed21a4d6711f5feb1ef5507c5dd10a6d5cb7cf60cb5bc2b233fdc3a0
description: Distributed Marketing includes a standard set of fields used to populate the associated journey's entry source data extension. You can add fields to the standard set to include data from contact or lead objects. When a campaign member is approved through Distributed Marketing or when a Quick Send message is sent, the values of the additional data fields for the underlying contact or lead are added to the entry source data extension in Marketing Cloud Engagement. Use this data for Marketing Cloud Engagement journey decisions, content personalization, and more.
products:
  - Marketing
  - Cross Cloud
release: "264"
---
# Extend Entry Source Data

Distributed Marketing includes a standard set of fields used to populate the associated journey's entry source data extension. You can add fields to the standard set to include data from contact or lead objects. When a campaign member is approved through Distributed Marketing or when a Quick Send message is sent, the values of the additional data fields for the underlying contact or lead are added to the entry source data extension in Marketing Cloud Engagement. Use this data for Marketing Cloud Engagement journey decisions, content personalization, and more.

Supported objects include Contact, Lead, Account (Person Account), Campaign, Case, Opportunity, and Quick Send (API name for quick send mcdm\_15\_\_QuickSendJourney\_\_c) related to the send, and Add Campaign Member.

For example, you can personalize messages with a custom phone number from the underlying lead or contact. Add the custom field to the Distributed Marketing payload by following these steps for each object.

1. In Salesforce, navigate to **Setup**.
2. Open **Developer Console**.
3. Click **Debug**.
4. Click **Open Execute Anonymous Window**.
5. Copy and paste the following Apex code. For mcdm\_15\_\_DestinationName\_\_c, enter the name of the new data extension column as it appears in Marketing Cloud Engagement. For mcdm\_15\_\_ObjectName\_\_c, enter the name of the underlying object containing the data. For mcdm\_15\_\_SourceName\_\_c, enter the API name of the object field you'd like to add to your data extension.
    
    ```
    
          mcdm_15__PersonalizationFieldMap__c personalizationFieldMap = new mcdm_15__PersonalizationFieldMap__c (
          mcdm_15__DestinationName__c='[Custom DE Column]',
          mcdm_15__ObjectName__c='[Lead or Contact]',
          mcdm_15__SourceName__c='[API Name of Field on Lead or Contact]'
          );
          
          insert personalizationFieldMap;
         
    ```
6. Execute the code.
7. In Marketing Cloud Engagement **Contact Builder**, locate the entry source data extension for the journey.
8. Add corresponding fields to the entry source data extension.
    
    You can use the data in Marketing Cloud Engagement.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_cross-cloud_products-264-0-0-production-enus/bd617332-480f-48e8-b283-3477883c1320/images/icon_example.png)

Example

For example, to include a custom phone number field companyContactPhone\_\_c in the standard injection payload, this code is executed in the Developer Console and companyContactPhone\_\_c is added to the entry source data extension.

```

     mcdm_15__PersonalizationFieldMap__c companyPhoneToDeColumnMapping = new mcdm_15__PersonalizationFieldMap__c (
     mcdm_15__DestinationName__c='companyPhoneNumber',
     mcdm_15__ObjectName__c='Contact',
     mcdm_15__SourceName__c='companyContactPhone__c'
     );
     
     insert companyPhoneToDeColumnMapping;
   
```

A column companyPhoneNumber is added to the default Distributed Marketing personalization table, which is used to generate the payload. When a campaign member is approved for receiving messages, the underlying contact’s corresponding companyContactPhone\_\_c is included in the Distributed Marketing payload and added to the data extension in Marketing Cloud Engagement.

#### See Also

- [Entry Sources](https://help.salesforce.com/s/articleView?id=mktg.mc_jb_entry_sources.htm&language=en_US)
- [Contact Builder in Marketing Cloud Engagement](https://help.salesforce.com/s/articleView?id=mktg.mc_cab_contact_builder.htm&language=en_US)