Newer Version Available

This content describes an older version of this product. View Latest

Context Mapping (POST, PATCH)

Create and update context mappings.
Resource
1/connect/context-definitions/${contextDefinitionId}/context-mappings
Example for POST
1https://yourInstance.salesforce.com/services/data/v59.0/connect/context-definitions/${contextDefinitionId}/context-mappings
Example for PATCH
1https://yourInstance.salesforce.com/services/data/v59.0/connect/context-definitions/${contextDefinitionId}/context-mappings
Available version
59.0
Requires Chatter
No
HTTP methods
POST, PATCH
Request body for POST
JSON example
1{
2    "contextMappings": [
3        {
4            "name":"ExampleMapping",
5            "description":"Example Mapping Description",
6            "isDefault":true
7        }
8    ],
9    "generateInputMappings":false,
10    "generateSObjectMappings":false
11}
Properties
Name Type Description Required or Optional Available Version
contextMappingId String ID of this context mapping. Required for update. Required 59.0
contextNodeMappings Context Node Mappings Input[] List of context node mappings. Optional 59.0
description String Description of context mapping. Optional 59.0
isDefault Boolean Specifies if you want to make default mapping for context definition (true) or not (false). Optional 59.0
name String Name of the context mapping. Required 59.0
Response body for POST
Context Mapping List Output
Request body for PATCH
JSON example
1{
2    "contextMappings": [
3      {
4        "contextMappingId": "11jxx0000005UXnAAM",
5        "contextNodeMappings": {
6          "contextNodeMappings": [
7            {
8              "attributeMappings": {
9                "contextAttributeMappings": [
10                  {
11                    "hydrationDetails": {
12                      "contextAttrHydrationDetails": []
13                    },
14                    "contextAttributeId": "11nxx000001ihzFAAQ",
15                    "contextInputAttributeName": "Node1A1"
16                  }
17                ]
18              },
19              "contextNodeId": "11oxx000001HS0iAAG",
20              "sObjectName": "Node1"
21            }
22          ]
23        }
24      }
25    ]
26  }
Response body for PATCH
Context Mapping List Output