Accelerator Salesforce Party Event Listener - Implementation Template

(0 reviews)

Data mappings

This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.

ModuleDescription
map-customer-and-contact-points-to-cimSalesforce Account Platform Event message to CIM Mapping
map-account-address-to-cimSalesforce Customer Address Platform Event message to CIM Mapping
map-contact-to-cimSalesforce Contacts Platform Event message to CIM Mapping
map-household-to-cimSalesforce Households Platform Event message to CIM Mapping
map-leads-to-cimSalesforce Leads Platform Event message to CIM Mapping
map-opportunities-to-cimSalesforce Opportunities Platform Event message to CIM Mapping

map-customer-and-contact-points-to-cim

Salesforce Account Platform Event message to CIM Mapping

Source: ./src/main/resources/dwl/map-customer-and-contact-points-to-cim.dwl

Functions

fun isOrgAccount (isPersonAccount)

Validates if the account is organization account

Mapping Tables

Maps event payload from Salesforce Event Listener Account Trigger to CIM Customer format. The CIM Customer (PartyRole) can have either Individual or Organization as Party. The Salesforce PersonAccount is mapped as a Customer with Party as Individual in CIM. The Salesforce Account is mapped as a Customer with Party as Organization in CIM.

CIM - CustomerEvent payload from Salesforce Event Listener Account TriggerDescription
idGlobal_Customer_Id__cThe Global ID of the customer in MDM system
partyRoleType"Customer"The party role type - Set as "Customer"
party[0].idId__cThe party identifier - Set as null
party[0].partyType"Individual"The party type - Set as Individual or Organization depending on the Account type
party[0].personNameFirstNamec LastNamecThe Person Name in Salesforce
party[0].firstNameFirstName__cThe firstname of the customer in Salesforce
party[0].lastNameLastName __cThe lastname of the customer in Salesforce
party[0].contactPoints[0].contactPointType"ContactPointAddress"The contact point type - Set as "ContactPointAddress"
party[0].contactPoints[0].idnullThe contact point type identifier in Salesforce - Set as null
party[0].contactPoints[0].activeFromDatenow()The date from which the contact point is active - Set as current date
party[0].contactPoints[0].addressLine1PersonMailingStreet__cThe Mailing street of the customer in Salesforce
party[0].contactPoints[0].cityNamePersonMailingCity__cThe Mailing City of the customer in Salesforce
party[0].contactPoints[0].postalCodeTextPersonMailingPostalCode__cThe postal code of the customer in Salesforce
party[0].contactPoints[0].stateProvinceNamePersonMailingState__cThe state province of the customer in Salesforce
party[0].contactPoints[0].countryNamePersonMailingCountry__cThe country of the customer in Salesforce
party[0].contactPoints[0].geoLatitudePersonMailingLatitude__cThe latitude co-ordinates of the customer address
party[0].contactPoints[0].geoLongitudePersonMailingLongitude__cThe longitude co-ordinates of the customer address
party[0].contactPoints[0].geoAccuracyPersonMailingGeocodeAccuracy__c The geo-accuracy of the customer address
party[0].contactPoints[1].contactPointType"ContactPointEmail"The contact point type - Set as "ContactPointEmail"
party[0].contactPoints[1].idnullThe contact point type identifier in Salesforce - Set as null
party[0].contactPoints[1].activeFromDatenow()The date from which the contact point is active - Set as current date
party[0].contactPoints[1].emailAddressPersonEmail__cThe Email address of the customer in Salesforce
party[0].contactPoints[2].contactPointType"ContactPointPhone"The contact point type - Set as "ContactPointPhone"
party[0].contactPoints[2].idnullThe contact point type identifier in Salesforce - Set as null
party[0].contactPoints[2].activeFromDatenow()The date from which the contact point is active - Set as current date
party[0].contactPoints[2].telephoneNumberPhone__cThe telephone number of the customer in Salesforce
externalIds[0].idnullThe identifier for the externalId entry - Set as null
externalIds[0].externalIdIdThe identifier of the customer in Salesforce
externalIds[0].externalIdType"SALESFORCE_MFG"The external identifier type - Set as "SALESFORCE_MFG"
externalIds[0].status"VALID"The status of the ExternalId - Set as "VALID"
customerNumberAccountNumber__cThe customer number stored in Salesforce - default as ""
customerStatus"ACTIVE"The customer Status in Salesforce - Set as Active
auditInfo.createdDatenow()Timestamp of when the customer was created
auditInfo.createdByCreatedByIdIdentifies the system or user which created the customer
auditInfo.updatedDatenow()Timestamp of when the customer was last updated
auditInfoupdatedByLastModifiedById__cIdentifies the system or user which last updated the customer
auditInfo.isDeletedIsDeletedIndicates whether or not the customer has been soft-deleted

(back to top)

map-account-address-to-cim

Salesforce Customer Address Platform Event message to CIM Mapping

Source: ./src/main/resources/dwl/map-account-address-to-cim.dwl

(back to top)

map-contact-to-cim

Salesforce Contacts Platform Event message to CIM Mapping

Source: ./src/main/resources/dwl/map-contact-to-cim.dwl

Mapping Tables

Maps Salesforce Contact to CIM Individual format

CIMSalesforce ContactDescription
idGlobal_Individual_Id__cThe global identifier of the contact in Salesforce
salutationSalutationThe salutation of the contact
personNameNameThe name of the contact
firstNameFirstNameThe first name of the contact
lastNameLastNameThe Last name of the contact
birthDateBirthdateThe birth date of the contact
primaryAccountAccountIdThe ID of the Account which the Contact is associated with
partyTypeIndividualThe contact party set as "Individual"
contactPointTypeContactPointAddresscontactPointType set as "ContactPointAddress"
idnullThe contactPointAddress id set as null
activeFromDatenow()The date from which the contactpoint is active - Set as current date
addressLine1MailingStreetThe mailing address of the contact
cityNameMailingCityThe mailing city of the contact
postalCodeTextMailingPostalCodeThe contact mailing postal code
stateProvinceNameMailingStateThe contact state province name
countryNameMailingCountryThe country name of the contact
geoLatitudeMailingLatitudeThe geo-latitude code of the contact
geoLongitudeMailingLongitudeThe geo-longitude code of the contact
geoAccuracyMailingGeocodeAccuracyThe geo-code accurate location of the contact
contactPointTypeContactPointEmailcontactPointType set as "ContactPointEmail"
idnullThe contactpoint id set as null
activeFromDatenow()The date from which the contactpoint is active - Set as current date
emailAddressEmailThe email address of the contact
contactPointTypeContactPointPhonecontactPointType - set as "ContactPointPhone"
contactPointTypeContactIdThe contactpoint id - set as null
activeFromDatenow()The date from which the contactpoint is active - Set as current date
telephoneNumberPhoneThe phone number of the contact
externalIds.idnullId field set as null
externalIds.externalIdIdThe identifier of the contact in Salesforce
externalIds.externalIdType"SALESFORCE_CORE"The externalId Type set as "SALESFORCE_CORE"
externalIds.statusVALIDThe externalId status is set as VALID
auditInfo.createdDateCreatedDateTimestamp of when the contact was created
auditInfo.createdByCreatedByIdIdentifies the system or user which created the contact
auditInfo.updatedDateLastModifiedDateTimestamp of when the contact was last updated
auditInfoupdatedByLastModifiedByIdIdentifies the system or user which last updated the contact
auditInfo.isDeletedIsDeletedIndicates whether or not the contact has been soft-deleted

(back to top)

map-household-to-cim

Salesforce Households Platform Event message to CIM Mapping

Source: ./src/main/resources/dwl/map-household-to-cim.dwl

Mapping Tables

Maps Salesforce Household Account to CIM Household format

CIMSalesforce Household AccountDescription
idGlobal_Party_Id__cThe global identifier of the Household Account in Salesforce
NameNameThe name of the Household
partyTypeHouseholdThe party set as "Household"
externalIds.idnullId field set as null
externalIds.externalIdIdThe identifier of the Household Account in Salesforce
externalIds.externalIdType"SALESFORCE_CORE"The externalId Type set as "SALESFORCE_CORE"
externalIds.statusVALIDThe externalId status is set as VALID
auditInfo.createdDateCreatedDateTimestamp of when the Household Account was created
auditInfo.createdByCreatedByIdIdentifies the system or user which created the Household Account
auditInfo.updatedDateLastModifiedDateTimestamp of when the Household Account was last updated
auditInfoupdatedByLastModifiedByIdIdentifies the system or user which last updated the Household Account
auditInfo.isDeletedIsDeletedIndicates whether or not the Household Account has been soft-deleted

(back to top)

map-leads-to-cim

Salesforce Leads Platform Event message to CIM Mapping

Source: ./src/main/resources/dwl/map-leads-to-cim.dwl

Mapping Tables

Maps Salesforce Lead to CIM Lead format

CIMSalesforce LeadDescription
idIdThe Id of Lead in Salesforce
salutationSalutationThe salutation of the lead
personNameNameThe name of the Lead
firstNameFirstNameThe first name of the lead
lastNameLastNameThe Last name of the lead
partyRoleTypeLeadThe partyRole set as Customer
partyTypeIndividualThe contact party set as "Individual"
contactPointTypeContactPointAddresscontactPointType set as "ContactPointAddress"
idnullThe contactPointAddress id set as null
activeFromDatenow()The date from which the contactpoint is active - Set as current date
addressLine1StreetThe street address of the lead
cityNameCityThe city of the lead
postalCodeTextPostalCodeThe postal code of the lead
stateProvinceNameStateThe lead state province name
countryNameCountryThe country name of the lead
geoLatitudeLatitudeThe geo-latitude code of the lead
geoLongitudeLongitudeThe geo-longitude code of the lead
contactPointTypeContactPointEmailcontactPointType set as "ContactPointEmail"
idnullThe contactpoint id set as null
activeFromDatenow()The date from which the contactpoint is active - Set as current date
emailAddressEmailThe email address of the lead
contactPointTypeContactPointPhonecontactPointType - set as "ContactPointPhone"
contactPointTypeContactIdThe contactpoint id - set as null
activeFromDatenow()The date from which the contactpoint is active - Set as current date
telephoneNumberPhoneThe phone number of the lead
externalIds.idnullId field set as null
externalIds.externalIdIdThe identifier of the lead in Salesforce
externalIds.externalIdType"SALESFORCE_CORE"The externalId Type set as "SALESFORCE_CORE" by default
externalIds.statusVALIDThe externalId status is set as VALID
auditInfo.createdDateCreatedDateTimestamp of when the lead was created
auditInfo.createdByCreatedByIdIdentifies the system or user which created the lead
auditInfo.updatedDateLastModifiedDateTimestamp of when the lead was last updated
auditInfoupdatedByLastModifiedByIdIdentifies the system or user which last updated the lead
auditInfo.isDeletedIsDeletedIndicates whether or not the lead has been soft-deleted

(back to top)

map-opportunities-to-cim

Salesforce Opportunities Platform Event message to CIM Mapping

Source: ./src/main/resources/dwl/map-opportunities-to-cim.dwl

Mapping Tables

Maps Salesforce Opportunity to CIM Opportunities format

CIMSalesforce OpportunityDescription
idGlobal_Party_Id__cThe global identifier of the Opportunity in Salesforce
nameNameThe name of the contact
firstNameAccount.FirstNameThe First Name of the account
lastNameAccount.NameThe Last Name of the account
personNameAccount.NameThe name of the account
partyTypeHouseholdThe party set as "Opportunity"
amountAmountThe amount mentioned in Salesforce
opportunityTypeTypeThe type of opportunity in Salesforce
closeDateCloseDateThe date on which the opportunity is closed
stageNameStageNameCurrent stage of the Opportunity
isClosedIsClosedIs the opportunity closed
isWonIsWonIs the opportunity won
primaryAccountAccountIdAccount associated with the opportunity
achTransferAuthDocumentIdAch Transfer Auth Document IdAch Transfer Document Id associated with opportunity
assetTransferAuthDocumentIdAch Transfer Auth Document IdAsset Transfer Document Id associated with opportunity
hasAllDocumentSignaturesDocument Signatures ReceivedFlag to indicate if all Signatures have been received for the Documents
hasKnowledgeCheckPassedKYC CompletedFlag to indicate if KYC Checked have been completed
contactPointsAccount.ContactContacts related to the Account associated with the opportunity
externalIds.idnullId field set as null
externalIds.externalIdIdThe identifier of the opportunity in Salesforce
externalIds.externalIdType"SALESFORCE_CORE"The externalId Type set as "SALESFORCE_CORE"
externalIds.statusVALIDThe externalId status is set as VALID
auditInfo.createdDateCreatedDateTimestamp of when the opportunity was created
auditInfo.createdByCreatedByIdIdentifies the system or user which created the opportunity
auditInfo.updatedDateLastModifiedDateTimestamp of when the opportunity was last updated
auditInfoupdatedByLastModifiedByIdIdentifies the system or user which last updated the opportunity
auditInfo.isDeletedIsDeletedIndicates whether or not the opportunity has been soft-deleted

(back to top)


Reviews

TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onNov 8, 2023
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0