Salesforce field mappings
The tables below contain the mappings between Salesforce source fields and their corresponding Experience Data Model (XDM) fields.
Contact contact
Read the XDM Individual Profile overview for more information on the XDM class. For more information on the XDM field groups, read the XDM Business Person Details schema field group guide and XDM Business Person Components schema field group guide.
AccountIdb2b.accountKey.sourceIDiif(AccountId != null && AccountId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}", "sourceKey", concat(AccountId,"@${CRM_ORG_ID}.Salesforce")), null)b2b.accountKeyiif(AccountId != null && AccountId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}","sourceID", AccountId, "sourceKey", concat(AccountId,"@${CRM_ORG_ID}.Salesforce")), null)personComponents.sourceAccountKey"Salesforce"b2b.personKey.sourceType"${CRM_ORG_ID}"b2b.personKey.sourceInstanceID"${CRM_ORG_ID}" will be automatically replaced.concat(Id,"@${CRM_ORG_ID}.Salesforce")b2b.personKey.sourceKey"${CRM_ORG_ID}" will be automatically replaced.AssistantNameextendedWorkDetails.assistantDetails.name.fullNameAssistantPhoneextendedWorkDetails.assistantDetails.phone.numberBirthdateperson.birthDateCreatedDateextSourceSystemAudit.createdDateDepartmentextendedWorkDetails.departmentsEmailworkEmail.addressEmailpersonComponents.workEmail.addressFaxfaxPhone.numberFirstNameperson.name.firstNameHomePhonehomePhone.numberisDeletedisDeletedIdb2b.personKey.sourceID"Salesforce"personComponents.sourcePersonKey.sourceType"${CRM_ORG_ID}"personComponents.sourcePersonKey.sourceInstanceIDIdpersonComponents.sourcePersonKey.sourceIDconcat(Id,"@${CRM_ORG_ID}.Salesforce")personComponents.sourcePersonKey.sourceKeyLastActivityDateextSourceSystemAudit.lastActivityDateLastModifiedDateextSourceSystemAudit.lastUpdatedDateLastNameperson.name.lastNameLastReferencedDateextSourceSystemAudit.lastReferencedDateLastViewedDateextSourceSystemAudit.lastViewedDateLeadSourceb2b.personSourceLeadSourcepersonComponents.personSourceMailingCityworkAddress.cityMailingCountryworkAddress.countryMailingLatitudeworkAddress._schema.latitudeMailingLongitudeworkAddress._schema.longitudeMailingPostalCodeworkAddress.postalCodeMailingStateworkAddress.stateMailingStreetworkAddress.street1MobilePhonemobilePhone.numberNameperson.name.fullNameOtherCityotherAddress.cityOtherCountryotherAddress.countryOtherLatitudeotherAddress._schema.latitudeOtherLongitudeotherAddress._schema.longitudeOtherPhoneotherPhone.numberOtherPostalCodeotherAddress.postalCodeOtherStateotherAddress.stateOtherStreetotherAddress.street1PhoneworkPhone.numberReportsToIdextendedWorkDetails.reportsToIDSalutationperson.name.courtesyTitleTitleextendedWorkDetails.jobTitle"Contact"b2b.personTypeLead lead
Read the XDM Individual Profile overview for more information on the XDM class. For more information on the XDM field groups, read the XDM Business Person Details schema field group guide and XDM Business Person Components schema field group guide.
CityworkAddress.cityConvertedDateb2b.convertedDateCountryworkAddress.countryEmailworkEmail.addressEmailpersonComponents.workEmail.addressFaxfaxPhone.numberFirstNameperson.name.firstNameIsConvertedb2b.isConvertedisDeletedisDeleted"Salesforce"b2b.personKey.sourceType"${CRM_ORG_ID}"b2b.personKey.sourceInstanceIDIdb2b.personKey.sourceIDconcat(Id,"@${CRM_ORG_ID}.Salesforce")b2b.personKey.sourceKey"${CRM_ORG_ID}" will be automatically replaced."Salesforce"personComponents.sourcePersonKey.sourceType"${CRM_ORG_ID}"personComponents.sourcePersonKey.sourceInstanceIDIdpersonComponents.sourcePersonKey.sourceIDconcat(Id,"@${CRM_ORG_ID}.Salesforce")personComponents.sourcePersonKey.sourceKeyLastActivityDateextSourceSystemAudit.lastActivityDateLastModifiedDateextSourceSystemAudit.lastUpdatedDateLastNameperson.name.lastNameLastReferencedDateextSourceSystemAudit.lastReferencedDateLastViewedDateextSourceSystemAudit.lastViewedDateLeadSourceb2b.personSourceLeadSourcepersonComponents.personSourceLatitudeworkAddress._schema.latitudeLongitudeworkAddress._schema.longitudeNameperson.name.fullNamePostalCodeworkAddress.postalCodeSalutationperson.name.courtesyTitleStateworkAddress.stateStatusb2b.personStatusStatuspersonComponents.personStatusStreetworkAddress.street1TitleextendedWorkDetails.jobTitleSuffixperson.name.suffixCompanyb2b.companyNameWebsiteb2b.companyWebsiteConvertedContactIdb2b.convertedContactKey.sourceIDiif(ConvertedContactId != null && ConvertedContactId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}", "sourceKey", concat(ConvertedContactId,"@${CRM_ORG_ID}.Salesforce")), null)b2b.convertedContactKeyCreatedDateextSourceSystemAudit.createdDate"Lead"b2b.personTypeiif(ConvertedContactId != null && ConvertedContactId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}", "sourceID", ConvertedContactId, "sourceKey", concat(ConvertedContactId,"@${CRM_ORG_ID}.Salesforce")), null)personComponents.sourceConvertedContactKeyAccount account
Read the XDM Business Account details overview for more information on the XDM class.
"Salesforce"accountKey.sourceType"${CRM_ORG_ID}"accountKey.sourceInstanceID"${CRM_ORG_ID}" will be automatically replaced.AccountNumberaccountNumberAccountSourceaccountSourceTypeAnnualRevenueaccountOrganization.annualRevenue.amountBillingCityaccountBillingAddress.cityBillingCountryaccountBillingAddress.countryBillingLatitudeaccountBillingAddress._schema.latitudeBillingLongitudeaccountBillingAddress._schema.longitudeBillingPostalCodeaccountBillingAddress.postalCodeBillingStateaccountBillingAddress.stateBillingStreetaccountBillingAddress.street1CreatedDateextSourceSystemAudit.createdDateDescriptionaccountDescriptionDunsNumberaccountOrganization.DUNSNumberFaxaccountFax.numberisDeletedisDeletedIdaccountKey.sourceIDconcat(Id,"@${CRM_ORG_ID}.Salesforce")accountKey.sourceKey"${CRM_ORG_ID}" will be automatically replaced.IndustryaccountOrganization.industryJigsawaccountOrganization.jigsawLastActivityDateextSourceSystemAudit.lastActivityDateLastModifiedDateextSourceSystemAudit.lastUpdatedDateLastReferencedDateextSourceSystemAudit.lastReferencedDateLastViewedDateextSourceSystemAudit.lastViewedDateNaicsCodeaccountOrganization.NAICSCodeNaicsDescaccountOrganization.NAICSDescriptionNameaccountNameNumberOfEmployeesaccountOrganization.numberOfEmployeesOwnershipaccountOwnershipParentIdaccountParentKey.sourceIDiif(ParentId != null && ParentId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}", "sourceKey", concat(ParentId,"@${CRM_ORG_ID}.Salesforce")), null)accountParentKeyPhoneaccountPhone.numberShippingCityaccountShippingAddress.cityShippingCountryaccountShippingAddress.countryShippingLatitudeaccountShippingAddress._schema.latitudeShippingLongitudeaccountShippingAddress._schema.longitudeShippingPostalCodeaccountShippingAddress.postalCodeShippingStateaccountShippingAddress.stateShippingStreetaccountShippingAddress.street1SicaccountOrganization.SICCodeSicDescaccountOrganization.SICDescriptionSiteaccountSiteTickerSymbolaccountOrganization.tickerSymbolTradestyleaccountTradeStyleTypeaccountTypeWebsiteaccountOrganization.websiteOpportunity opportunity
Read the XDM Business Opportunity overview for more information on the XDM class.
"Salesforce"opportunityKey.sourceType"${CRM_ORG_ID}"opportunityKey.sourceInstanceID"${CRM_ORG_ID}" will be automatically replaced.concat(Id,"@${CRM_ORG_ID}.Salesforce")opportunityKey.sourceKey"${CRM_ORG_ID}" will be automatically replaced.AccountIdaccountKey.sourceIDiif(AccountId != null && AccountId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}", "sourceKey", concat(AccountId,"@${CRM_ORG_ID}.Salesforce")), null)accountKeyAmountopportunityAmount.amountCampaignIdcampaignKey.sourceIDiif(CampaignId != null && CampaignId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}", "sourceKey", concat(CampaignId,"@${CRM_ORG_ID}.Salesforce")), null)campaignKeyCloseDateexpectedCloseDateCreatedDateextSourceSystemAudit.createdDateDescriptionopportunityDescriptionExpectedRevenueexpectedRevenue.amountFiscalQuarterfiscalQuarterFiscalYearfiscalYearForecastCategoryforecastCategoryForecastCategoryNameforecastCategoryNameIdopportunityKey.sourceIDIsClosedisClosedisDeletedisDeletedIsWonisWonLastActivityDateextSourceSystemAudit.lastActivityDateLastModifiedDateextSourceSystemAudit.lastUpdatedDateLastReferencedDateextSourceSystemAudit.lastReferencedDateLastViewedDateextSourceSystemAudit.lastViewedDateLeadSourceleadSourceNameopportunityNameNextStepnextStepProbabilityprobabilityPercentageStageNameopportunityStageTotalOpportunityQuantityopportunityQuantityTypeopportunityTypeCurrencyIsoCodeopportunityAmount.currencyCodeOpportunity contact role opportunity-contact-role
Read the XDM Business Opportunity Person Relation class overview for more information on the XDM class.
"Salesforce"opportunityPersonKey.sourceType"${CRM_ORG_ID}"opportunityPersonKey.sourceInstanceID"${CRM_ORG_ID}" will be automatically replaced."Salesforce"personKey.sourceType"${CRM_ORG_ID}"personKey.sourceInstanceIDContactIdpersonKey.sourceIDconcat(ContactId,"@${CRM_ORG_ID}.Salesforce")personKey.sourceKeyCreatedDateextSourceSystemAudit.createdDateIdopportunityPersonKey.sourceIDconcat(Id,"@${CRM_ORG_ID}.Salesforce")opportunityPersonKey.sourceKey"${CRM_ORG_ID}" will be automatically replaced.isDeletedisDeletedIsPrimaryisPrimaryLastModifiedDateextSourceSystemAudit.lastUpdatedDate"Salesforce"opportunityKey.sourceType"${CRM_ORG_ID}"opportunityKey.sourceInstanceIDOpportunityIdopportunityKey.sourceIDconcat(OpportunityId,"@${CRM_ORG_ID}.Salesforce")opportunityKey.sourceKeyRolepersonRoleCampaign campaign
Read the XDM Business Campaign class overview for more information on the XDM class. For more information on the XDM field groups, read the XDM Business Campaign details schema field group guide.
"Salesforce"campaignKey.sourceType"${CRM_ORG_ID}"campaignKey.sourceInstanceID"${CRM_ORG_ID}" will be automatically replaced.isDeletedisDeletedIdcampaignKey.sourceIDconcat(Id,"@${CRM_ORG_ID}.Salesforce")campaignKey.sourceKey"${CRM_ORG_ID}" will be automatically replaced.NamecampaignNameParentIdparentCampaignKey.sourceIDiif(ParentId != null && ParentId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}", "sourceKey", concat(ParentId,"@${CRM_ORG_ID}.Salesforce")), null)parentCampaignKeyTypecampaignTypeStatuscampaignStatusStartDatecampaignStartDateEndDatecampaignEndDateExpectedRevenueexpectedRevenue.amountBudgetedCostbudgetedCost.amountActualCostactualCost.amountExpectedResponseexpectedResponseIsActiveisActiveDescriptioncampaignDescriptionCreatedDateextSourceSystemAudit.createdDateLastModifiedDateextSourceSystemAudit.lastUpdatedDateLastActivityDateextSourceSystemAudit.lastActivityDateLastViewedDateextSourceSystemAudit.lastViewedDateLastReferencedDateextSourceSystemAudit.lastReferencedDateCurrencyIsoCodeactualCost.currencyCodeCampaign member campaign-member
Read the XDM Business Campaign Members overview for more information on the XDM class. For more information on the XDM field groups, read the XDM Business Campaign Member details schema field group document.
"Salesforce"campaignMemberKey.sourceType"${CRM_ORG_ID}"campaignMemberKey.sourceInstanceID"${CRM_ORG_ID}" will be automatically replaced.isDeletedisDeletedIdcampaignMemberKey.sourceIDconcat(Id,"@${CRM_ORG_ID}.Salesforce")campaignMemberKey.sourceKey"${CRM_ORG_ID}" will be automatically replaced."Salesforce"campaignKey.sourceType${CRM_ORG_ID}campaignKey.sourceInstanceIDCampaignIdcampaignKey.sourceIDconcat(CampaignId,"@${CRM_ORG_ID}.Salesforce")campaignKey.sourceKey"Salesforce"personKey.sourceType${CRM_ORG_ID}personKey.sourceInstanceIDLeadOrContactIdpersonKey.sourceIDconcat(LeadOrContactId,"@${CRM_ORG_ID}.Salesforce")personKey.sourceKeyStatusmemberStatusHasRespondedhasRespondedCreatedDateextSourceSystemAudit.createdDateLastModifiedDateextSourceSystemAudit.lastUpdatedDateFirstRespondedDatefirstRespondedDateTypeb2b.personTypeAccount contact relation account-contact-relation
Read the XDM Business Account Person Relation class for more information on the XDM class.
AccountIdaccountKey.sourceIDiif(AccountId != null && AccountId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}", "sourceKey", concat(AccountId,"@${CRM_ORG_ID}.Salesforce")), null)accountKeyContactIdpersonKey.sourceIDiif(ContactId != null && ContactId != "", to_object("sourceType", "Salesforce", "sourceInstanceID", "${CRM_ORG_ID}", "sourceKey", concat(ContactId,"@${CRM_ORG_ID}.Salesforce")), null)personKeyCreatedByIdextSourceSystemAudit.createdByCreatedDateextSourceSystemAudit.createdDateEndDaterelationEndDateIsDeletedisDeletedIdaccountPersonKey.sourceID"Salesforce"accountPersonKey.sourceType"${CRM_ORG_ID}"accountPersonKey.sourceInstanceIDconcat(Id, "@${CRM_ORG_ID}.Salesforce")accountPersonKey.sourceKeyIsActiveIsActiveIsDirectIsDirectLastModifiedByIdextSourceSystemAudit.lastUpdatedByLastModifiedDateextSourceSystemAudit.lastUpdatedDateexplode(Roles,";")personRoles[]StartDaterelationStartDateNext steps
By reading this document, you have gained insight on the mapping relationship between Salesforce source fields and their corresponding XDM fields. See the documentation on creating a Salesforce source connection for more information.