Salesforce Object to Reltio Entity Conversion
The API converts Salesforce objects to Reltio entities and relations.
The result contains all entities and relations in a format that Reltio will allow during the synchronization process.
Request
POST: {SFDCConnectorUrl}/mapper/{tenant}/{profile}/convert/to_reltio| Parameters | Name | Required | Description | Example | 
|---|---|---|---|---|
Headers | 
              authorization | true | Authorization header | Bearer {oauth_token} | 
            
Path | 
              tenant | true | Reltio tenantId | 
              someTenant | 
            
Path | 
              profile | true | Profile Id | 000000000000012345 | 
            
Body | 
              true | Array of sobjects to be converted to entities
                and relations | 
               | 
            
Response
The response is an array of JSON objects and each object has parameters:
| Name | Description | Example | 
|---|---|---|
entities | 
              List of entities and relations converted from sobject | 
               | 
            
| relations | List of entity JSON to be posted to Reltio |  | 
            
| filtered | Indicates if the sobject will be filtered according to
                mapping, during synchronization | 
               | 
            
| errors | Array of error messages if error occurred during the execution of operation for the corresponding Salesforce Type |  | 
            
Full Response Example
[
  {
    "entities": [
      {
        "type": "configuration/entityTypes/Company1",
        "attributes": {
          "Name": [
            {
              "value": "TestCompany"
            }
          ]
        },
        "crosswalks": [
          {
            "type": "configuration/sources/SFDC",
            "sourceTable": "Account",
            "uri": "/001f400000wC5RRAA0",
            "value": "001f400000wC5RRAA0",
            "dataProvider": true,
            "contributorProvider": false
          }
        ]
      }
    ],
    "relations": [
      {
        "type": "configuration/relationTypes/Affiliation",
        "startObject": {
          "crosswalks": [
            {
              "type": "configuration/sources/SFDC",
              "sourceTable": "Account",
              "value": "001f400000wC5IGAA0"
            }
          ]
        },
        "endObject": {
          "crosswalks": [
            {
              "type": "configuration/sources/SFDC",
              "sourceTable": "Account",
              "value": "001f400000wC5RRAA0"
            }
          ]
        },
        "crosswalks": [
          {
            "type": "configuration/sources/SFDC",
            "sourceTable": "Account.Account.Affiliation",
            "value": "001f400000wC5RRAA0"
          }
        ]
      }
    ],
    "filtered": false
  },
  {
    "errors": [
      "Object type is not specified"
    ]
  },
  {
    "errors": [
      "No mapping found for type SomeType and record type 012f4000000YFagAAG"
    ]
  }
]