Unify and manage your data

Mapping Configuration - Set Tenant Mapping

Learn how this endpoint validates tenant mapping and sets it if valid.

Request

To set the tenant mapping use this endpoint:

POST {SFDCConnectorURL}\configuration\{tenantId}\{profileName}\mapping
Table 1. Parameters
Parameter Required Description
HeadersAuthorizationYesAccess Token in format "Bearer <accessToken>" (see details in Authentication API)
Content-TypeYesMust be "Content-Type: application/json"
QuerytenantIdYesTenant ID
QueryprofileNameYesName of the profile
BodyYes
[
  {
    "description": "Reltio: Address is Reference, SFDC: Address_vod__c - separate object",
    "isActive": true,
    "sfdcSource": "configuration/sources/SFDC",
    "sobject": {
      "type": "Account",
      "recordTypeId": "123400000HygtYYu"
    },
    "reltioObjectType": "configuration/entityTypes/Organization",
    "to_salesforce": {
      "filter": "equals(configuration/entityTypes/Organization/attributes/SyncFlag, true)",
      "attributeMapping": [
        {
          "sfdcAttrName": "Name",
          "value": "configuration/entityTypes/Organization/attributes/Name"
        },
        {
          "sfdcAttrName": "HomeEmail",
          "value": "configuration/entityTypes/Organization/attributes/Email"
        },
        {
          "sfdcAttrName": "WebsiteURL",
          "value": "=source(configuration/entityTypes/Organization/attributes/WebsiteURL).split('.').get(1)"
        },
        {
          "sfdcAttrName": "Phone_Works__c",
          "value": "=source(configuration/entityTypes/Organization/attributes/Phone/attributes/Number).equals(configuration/entityTypes/Organization/attributes/Phone/attributes/Type, Home)"
        }
      ],
      "relatedObjects": [
        {
          "sobject": {
            "type": "Address_vod__c",
            "recordTypeId": "123400000HygtYYu"
          },
          "rootUri": "configuration/entityTypes/Organization/attributes/Address",
          "recordTypeId": "123600000CiouYYu",
          "filter": "equals(configuration/entityTypes/Location/attributes/AddressLine1, Main Street)",
          "relationshipName": "Address_vod__r",
          "attributeMapping": [
            {
              "sfdcAttrName": "Name",
              "value": "configuration/entityTypes/Location/attributes/AddressLine1"
            },
            {
              "sfdcAttrName": "City",
              "value": "configuration/entityTypes/Location/attributes/City"
            },
            {
              "sfdcAttrName": "Zip__c",
              "value": "configuration/entityTypes/Location/attributes/Zip/attributes/Zip5"
            }
          ]
        }
      ]
    },
    "to_reltio": {
      "filter": "equals(Name, Vaso)",
      "attributeMapping": [
        {
          "uri": "configuration/entityTypes/Organization/attributes/FirstName",
          "value": "FirstName"
        },
        {
          "uri": "configuration/entityTypes/Organization/attributes/FullName",
          "value": "=source('FirstName','LastName').join(' ')"
        },
        {
          "uri": "configuration/entityTypes/Organization/attributes/Phone/attributes/Number",
          "value": "WorkPhone"
        },
        {
          "uri": "configuration/entityTypes/Organization/attributes/Phone",
          "value": [
            {
              "attributeMapping": [
                {
                  "uri": "configuration/entityTypes/Organization/attributes/Phone/Type",
                  "value": "='Home'"
                },
                {
                  "uri": "configuration/entityTypes/Organization/attributes/Phone/Number",
                  "value": "HomePhone"
                }
              ]
            }
          ]
        },
        {
          "uri": "configuration/entityTypes/Organization/attributes/Address",
          "sobject": {
            "type": "Address_vod__c",
            "recordTypeId": "123400000HygtYYu"
          },
          "filter": "equals(Name, Main Street)",
          "value": [
            {
              "attributeMapping": [
                {
                  "uri": "configuration/entityTypes/Location/attributes/AddressLine1",
                  "value": "Name"
                },
                {
                  "uri": "configuration/entityTypes/Location/attributes/City",
                  "value": "City"
                },
                {
                  "uri": "configuration/entityTypes/Location/attributes/Zip",
                  "value": "Zip__c"
                }
              ]
            }
          ]
        }
      ]
    }
  }
]

Response

Success: 200 status: Mapping for {tenantId}+{profileName} has been updated}
Error:   400 Bad Request, { error: {reason}}