RCG Salesforce Customers System API - 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
create-contact-requestSalesforce Contact create mapping
lookup-contacts-responseSalesforce Contact to CIM Individual mapping response
retrieve-contact-by-id-responseSalesforce Contact to CIM Individual format mapping
update-contact-request-for-sfSalesforce Contact update mapping
create-account-contact-relationSalesforce Create AccountContactRelation mapping
create-customer-requestSalesforce Person Account create mapping
create-organization-account-requestSalesforce Organization Account create mapping
retrieve-customer-by-id-responseSalesforce Person Account to CIM Customer format mapping
retrieve-related-contacts-by-customerid-responseSalesforce AccountContactRelation mapping to CIM PartyRelatedParty
search-customers-responseSalesforce Account to CIM Customer format mapping response
update-account-contact-relationSalesforce Update AccountContactRelation mapping
update-customers-request-for-sfSalesforce Person Account update mapping
update-organization-account-request-for-sfSalesforce Organization Account update mapping

create-contact-request

Salesforce Contact create mapping

Source: ./src/main/resources/dwl/contacts/create-contact-request.dwl

Mapping Tables

Maps CIM Individual format to Salesforce Contact Object

Salesforce ContactCIMDescription
Salutationparty.salutationThe salutation of the contact
FirstNameparty.firstNameThe First Name of the contact
lastNameparty.LastNameThe Last Name of the contact
BirthDateparty.birthDateThe birth date of the contact
Global_Individual_Id__cexternalIds.externalIdThe identifier of the contact in MDM system
MailingStreetparty.contactPointAddress.addressLine1The mailing Address of the contact
MailingCityparty.contactPointAddress.cityNameThe mailing city of the contact
MailingPostalCodeparty.contactPointAddress.postalCodeTextThe mailing postal code of the contact
MailingStateparty.contactPointAddress.stateProvinceNameThe contact mailing state
MailingCountryparty.contactPointAddress.countryNameThe contact mailing country
MailingLatitudeparty.contactPointAddress.geoLatitudeThe contact geo lattitude location
MailingLongitudeparty.contactPointAddress.geoLongitudeThe contact geo logitude location
Emailparty.ContactPointEmail.emailAddressThe contact email
Phoneparty.ContactPointPhone.telephoneNumberThe contact phone Number

(back to top)

lookup-contacts-response

Salesforce Contact to CIM Individual mapping response

Source: ./src/main/resources/dwl/contacts/lookup-contacts-response.dwl

Mapping Tables

Maps Salesforce Contact to CIM Individual format

CIMSalesforce ContactDescription
ididThe 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
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.ididId field is hardcoded as empty string
externalIds.externalIdGlobal_Individual_Id__cThe identifier of the contact in MDM system
externalIds.externalIdTypeMDMThe externalId Type set as "MDM"
externalIds.statusLastChangedDateLastModifiedDateLast modified date to "yyyy-MM-dd'T'HH:mm:ssz"
externalIds.statusVALIDThe externalId status is set as VALID
auditInfo.createdDateCreatedDateTimestamp of when the contact was created
auditInfo.createdByCreatedBy.NameIdentifies the system or user which created the contact
auditInfo.updatedDateLastModifiedDateTimestamp of when the contact was last updated
auditInfoupdatedByLastModifiedBy.NameIdentifies the system or user which last updated the contact
auditInfo.isDeletedIsDeletedIndicates whether or not the contact has been soft-deleted

(back to top)

retrieve-contact-by-id-response

Salesforce Contact to CIM Individual format mapping

Source: ./src/main/resources/dwl/contacts/retrieve-contact-by-id-response.dwl

Mapping Tables

Maps Salesforce Contact to CIM Individual format

CIMSalesforce ContactDescription
ididThe 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
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.ididId field is hardcoded as empty string
externalIds.externalIdGlobal_Individual_Id__cThe identifier of the contact in MDM system
externalIds.externalIdTypeMDMThe externalId Type set as "MDM"
externalIds.statusLastChangedDateLastModifiedDateLast modified date to "yyyy-MM-dd'T'HH:mm:ssz"
externalIds.statusVALIDThe externalId status is set as VALID
auditInfo.createdDateCreatedDateTimestamp of when the contact was created
auditInfo.createdByCreatedBy.NameIdentifies the system or user which created the contact
auditInfo.updatedDateLastModifiedDateTimestamp of when the contact was last updated
auditInfoupdatedByLastModifiedBy.NameIdentifies the system or user which last updated the contact
auditInfo.isDeletedIsDeletedIndicates whether or not the contact has been soft-deleted

(back to top)

update-contact-request-for-sf

Salesforce Contact update mapping

Source: ./src/main/resources/dwl/contacts/update-contact-request-for-sf.dwl

Mapping Tables

Maps CIM Individual format to Salesforce Contact Object

Salesforce ContactCIMDescription
IdcontactIdThe identifier of the contact in Salesforce
Salutationparty.salutationThe salutation of the contact
FirstNameparty.firstNameThe First Name of the contact
lastNameparty.LastNameThe Last Name of the contact
BirthDateparty.birthDateThe birth date of the contact
Global_Individual_Id__cexternalIds.externalIdThe identifier of the contact in MDM system
MailingStreetparty.contactPointAddress.addressLine1The mailing Address of the contact
MailingCityparty.contactPointAddress.cityNameThe mailing city of the contact
MailingPostalCodeparty.contactPointAddress.postalCodeTextThe mailing postal code of the contact
MailingStateparty.contactPointAddress.stateProvinceNameThe contact mailing state
MailingCountryparty.contactPointAddress.countryNameThe contact mailing country
MailingLatitudeparty.contactPointAddress.geoLatitudeThe contact geo lattitude location
MailingLongitudeparty.contactPointAddress.geoLongitudeThe contact geo logitude location
Emailparty.ContactPointEmail.emailAddressThe contact email
Phoneparty.ContactPointPhone.telephoneNumberThe contact phone Number

(back to top)

create-account-contact-relation

Salesforce Create AccountContactRelation mapping

Source: ./src/main/resources/dwl/customers/create-account-contact-relation.dwl

Mapping Tables

Maps CIM PartyRelatedParty to Salesforce AccountContactRelation

SalesforceCIMDescription
IdidThe identifier of the AccountContactRelation record in Salesforce
AccountIdparty.idThe identifier of the associated Account
ContactIdrelatedParty.idThe identifier of the associated contact
RolespartyRelationshipTypeThe Relationship type of Account and Contact
StartDaterelatedFromDateThe date from which Account and Contact are related
EndDaterelatedEndDateThe date till which Account and Contact are related

(back to top)

create-customer-request

Salesforce Person Account create mapping

Source: ./src/main/resources/dwl/customers/create-customer-request.dwl

Mapping Tables

Maps CIM Customer format to Salesforce Person Account Object

Salesforce Person AccountCIMDescription
Salutationparty.salutationThe salutation of the customer
FirstNameparty.firstNameThe First Name of the customer
lastNameparty.LastNameThe Last Name of the customer
PersonBirthDateparty.birthDateThe birth date of the customer
Global_Customer_Id__cexternalIds.externalIdThe Global-Id of the customer when externalIdType matches MDM
RecordTypeIdrecordTypeIdThe Salesforce record Id for creating a customer
AccountNumbercustomerNumberThe customer Account Number
PersonMailingStreetparty.contactPointAddress.addressLine1The mailing Address of the customer
PersonMailingCityparty.contactPointAddress.cityNameThe mailing city of the customer
PersonMailingPostalCodeparty.contactPointAddress.postalCodeTextThe mailing postal code of the customer
PersonMailingStateparty.contactPointAddress.stateProvinceNameThe customer mailing state
PersonMailingCountryparty.contactPointAddress.countryNameThe customer mailing country
PersonMailingLatitudeparty.contactPointAddress.geoLatitudeThe customer geo lattitude location
PersonMailingLongitudeparty.contactPointAddress.geoLongitudeThe customer geo logitude location
PersonEmailparty.ContactPointEmail.emailAddressThe customer contact email
Phoneparty.ContactPointPhone.telephoneNumberThe customer contact phone Number

(back to top)

create-organization-account-request

Salesforce Organization Account create mapping

Source: ./src/main/resources/dwl/customers/create-organization-account-request.dwl

Mapping Tables

Maps CIM Customer format to Salesforce Person Account Object

Salesforce Person AccountCIMDescription
Nameparty.nameThe Name of the Organization
FirstNameparty.firstNameThe First Name of the customer
lastNameparty.LastNameThe Last Name of the customer
PersonBirthDateparty.birthDateThe birth date of the customer
Global_Customer_Id__cexternalIds.externalIdThe Global-Id of the customer when externalIdType matches MDM
RecordTypeIdrecordTypeIdThe Salesforce record Id for creating a customer
AccountNumbercustomerNumberThe customer Account Number
BillingStreetparty.contactPointAddress.addressLine1The mailing Address of the customer
BillingCityparty.contactPointAddress.cityNameThe mailing city of the customer
BillingPostalCodeparty.contactPointAddress.postalCodeTextThe mailing postal code of the customer
BillingStateparty.contactPointAddress.stateProvinceNameThe customer mailing state
BillingCountryparty.contactPointAddress.countryNameThe customer mailing country
BillingLatitudeparty.contactPointAddress.geoLatitudeThe customer geo lattitude location
BillingLongitudeparty.contactPointAddress.geoLongitudeThe customer geo logitude location
PersonEmailparty.ContactPointEmail.emailAddressThe customer contact email
Phoneparty.ContactPointPhone.telephoneNumberThe customer contact phone Number

(back to top)

retrieve-customer-by-id-response

Salesforce Person Account to CIM Customer format mapping

Source: ./src/main/resources/dwl/customers/retrieve-customer-by-id-response.dwl

Mapping Tables

Maps Salesforce Account 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.

CIMSalesforce Person AccountDescription
partyRoleTypeCustomerHardcoded partyrole to customer
idcustomerIdThe customer Id
party.ididThe party Id is hardcoded to null
party.salutationSalutationThe customer salutation
party.personNameFirstName ++ LastNameThe customer personal name (concatenate FistName + LastName)
party.firstNameFirstNameThe customer first name
party.lastNameLastNameThe customer Last name
party.birthDatePersonBirthdateThe customer birth date
party.partyTypeIndividualThe customer party type hardcoded as Individual or Organization
contactPointTypeContactPointAddressHardcoded customer contact type to ContactPointAddress
idPersonContactIdThe customer Id
activeFromDatetodays dateThe customer Active from date is hardcoded to Todays date
addressLine1PersonMailingStreetThe customers mailing address
cityNamePersonMailingCityThe customers mailing city
postalCodeTextPersonMailingPostalCodeThe customer mailing postal code
stateProvinceNamePersonMailingStateThe customer state province name
countryNamePersonMailingCountryThe customer country name
geoLatitudePersonMailingLatitudeThe customer geo-latitude code
geoLongitudePersonMailingLongitudeThe customer geo-longitude code
geoAccuracyPersonMailingGeocodeAccuracyThe customer geo-code accurate location
contactPointTypeContactPointEmailHardcoded customer contact type to ContactPointEmail
idPersonContactIdThe customer id
activeFromDatetodays dateThe customer Active from date is hardcoded to todays date
emailAddressPersonEmailThe customer contact email address
contactPointTypeContactPointPhoneHardcoded customer contact type to ContactPointPhone
contactPointTypePersonContactIdThe customer id
activeFromDatetodays dateThe customer Active from date is hardcoded to todays date
telephoneNumberPhoneThe customer phone number
externalIds.ididId field is hardcoded as empty string
externalIds.externalIdGlobal_Customer_Id__cThe customer Global Id
externalIds.externalIdTypeMDMThe customer is hardcoded as MDM
externalIds.statusLastChangedDateLastModifiedDateLast modified date to "yyyy-MM-dd'T'HH:mm:ssz"
externalIds.statusVALIDThe customer status is hardcoded as VALID
auditInfo.createdDateCreatedDateThe customer created date to "yyyy-MM-dd'T'HH:mm:ssz"
auditInfo.createdByCreatedBy.NameThe last created by user name
auditInfo.updatedDateLastModifiedDateThe last updated date to "yyyy-MM-dd'T'HH:mm:ssz"
auditInfo.updatedByLastModifiedBy.NameThe last modified user name
auditInfo.isDeletedIsDeletedreturns true if user deleted else false
customerNumberAccountNumberThe customer Account Number
customerStatusACTIVEHardcoded as ACTIVE

(back to top)

Salesforce AccountContactRelation mapping to CIM PartyRelatedParty

Source: ./src/main/resources/dwl/customers/retrieve-related-contacts-by-customerid-response.dwl

Variables

var s

Maps Salesforce AccountContactRelation to CIM PartyRelatedParty

Mapping Tables

Maps Salesforce AccountContactRelation to CIM PartyRelatedParty

CIMSalesforceDescription
idIdThe identifier of the AccountContactRelation record in Salesforce
partyRelationshipTypeRolesThe Relationship type of Account and Contact
relatedParty.idContactIdThe identifier of the associated contact
partyType"Individual"The type of Party set as Individual
party.idAccountIdThe identifier of the associated Account
partyType"Organization"The type of Party set as Organization
relatedFromDateStartDateThe date from which Account and Contact are related
relatedEndDateEndDateThe date till which Account and Contact are related

(back to top)

search-customers-response

Salesforce Account to CIM Customer format mapping response

Source: ./src/main/resources/dwl/customers/search-customers-response.dwl

Mapping Tables

Maps Salesforce Account 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.

CIMSalesforce Person AccountDescription
partyRoleTypeCustomerHardcoded partyrole to customer
idcustomerIdThe customer Id
party.ididThe party Id is hardcoded to null
party.salutationSalutationThe customer salutation
party.personNameFirstName ++ LastNameThe customer personal name (concatenate FistName + LastName)
party.firstNameFirstNameThe customer first name
party.lastNameLastNameThe customer Last name
party.birthDatePersonBirthdateThe customer birth date
party.partyTypeIndividualThe customer party type hardcoded as Individual or Organization
contactPointTypeContactPointAddressHardcoded customer contact type to ContactPointAddress
idPersonContactIdThe customer Id
activeFromDatetodays dateThe customer Active from date is hardcoded to Todays date
addressLine1PersonMailingStreetThe customers mailing address
cityNamePersonMailingCityThe customers mailing city
postalCodeTextPersonMailingPostalCodeThe customer mailing postal code
stateProvinceNamePersonMailingStateThe customer state province name
countryNamePersonMailingCountryThe customer country name
geoLatitudePersonMailingLatitudeThe customer geo-latitude code
geoLongitudePersonMailingLongitudeThe customer geo-longitude code
geoAccuracyPersonMailingGeocodeAccuracyThe customer geo-code accurate location
contactPointTypeContactPointEmailHardcoded customer contact type to ContactPointEmail
idPersonContactIdThe customer id
activeFromDatetodays dateThe customer Active from date is hardcoded to todays date
emailAddressPersonEmailThe customer contact email address
contactPointTypeContactPointPhoneHardcoded customer contact type to ContactPointPhone
contactPointTypePersonContactIdThe customer id
activeFromDatetodays dateThe customer Active from date is hardcoded to todays date
telephoneNumberPhoneThe customer phone number
externalIds.ididId field is hardcoded as empty string
externalIds.externalIdGlobal_Customer_Id__cThe customer Global Id
externalIds.externalIdTypeMDMThe customer is hardcoded as MDM
externalIds.statusLastChangedDateLastModifiedDateLast modified date to "yyyy-MM-dd'T'HH:mm:ssz"
externalIds.statusVALIDThe customer status is hardcoded as VALID
auditInfo.createdDateCreatedDateThe customer created date to "yyyy-MM-dd'T'HH:mm:ssz"
auditInfo.createdByCreatedBy.NameThe last created by user name
auditInfo.updatedDateLastModifiedDateThe last updated date to "yyyy-MM-dd'T'HH:mm:ssz"
auditInfo.updatedByLastModifiedBy.NameThe last modified user name
auditInfo.isDeletedIsDeletedreturns true if user deleted else false
customerNumberAccountNumberThe customer Account Number
customerStatusACTIVEHardcoded as ACTIVE

(back to top)

update-account-contact-relation

Salesforce Update AccountContactRelation mapping

Source: ./src/main/resources/dwl/customers/update-account-contact-relation.dwl

Mapping Tables

Maps CIM PartyRelatedParty to Salesforce AccountContactRelation

SalesforceCIMDescription
IdidThe identifier of the AccountContactRelation record in Salesforce
RolespartyRelationshipTypeThe Relationship type of Account and Contact
StartDaterelatedFromDateThe date from which Account and Contact are related
EndDaterelatedEndDateThe date till which Account and Contact are related

(back to top)

update-customers-request-for-sf

Salesforce Person Account update mapping

Source: ./src/main/resources/dwl/customers/update-customers-request-for-sf.dwl

Mapping Tables

Maps CIM format to Salesforce Account Object

Salesforce Person AccountCIMDescription
IdcustomerIdThe customer Id from the Uriparams
Salutationparty.salutationThe salutation of the customer
FirstNameparty.firstNameThe First Name of the customer
lastNameparty.LastNameThe Last Name of the customer
PersonBirthDateparty.birthDateThe birth date of the customer
AccountNumbercustomerNumberThe customer Account Number
Global_Customer_Id__cexternalIds.externalIdThe Global-Id of the customer when externalIdType matches MDM

(back to top)

update-organization-account-request-for-sf

Salesforce Organization Account update mapping

Source: ./src/main/resources/dwl/customers/update-organization-account-request-for-sf.dwl

Mapping Tables

Maps CIM format to Salesforce Account Object

Salesforce Person AccountCIMDescription
IdcustomerIdThe customer Id from the Uriparams
Salutationparty.salutationThe salutation of the customer
FirstNameparty.firstNameThe First Name of the customer
lastNameparty.LastNameThe Last Name of the customer
PersonBirthDateparty.birthDateThe birth date of the customer
AccountNumbercustomerNumberThe customer Account Number
Global_Customer_Id__cexternalIds.externalIdThe Global-Id of the customer when externalIdType matches MDM

(back to top)


Reviews

TypeTemplate
OrganizationMulesoft Inc.
Published by
MuleSoft Solutions
Published onOct 18, 2022
Asset overview

Asset versions for 2.3.x

Asset versions
VersionActions
2.3.1