Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Context Attribute Mapping (POST, PATCH)

Create context attribute mapping. Update context attribute mapping.
Resource
1/connect/context-node-mappings/${contextNodeMappingId}/context-attribute-mappings
Example for POST
1https://yourInstance.salesforce.com/services/data/v59.0/connect/context-node-mappings/${contextNodeMappingId}/context-attribute-mappings
Example for PATCH
1https://yourInstance.salesforce.com/services/data/v59.0/connect/context-node-mappings/${contextNodeMappingId}/context-attribute-mappings
Available version
59.0
Requires Chatter
No
HTTP methods
POST, PATCH
Request body for POST
JSON example
1{
2    "contextAttributeMappings": [
3        {
4            "contextAttributeId": "11nxx000001hIgLAAU",
5            "hydrationDetails": {
6                "contextAttrHydrationDetails": [
7                    {
8                        "sObjectDomain": "Order",
9                        "queryAttribute": "Status"
10                    }
11                ]
12            }
13        },
14        {
15            "contextAttributeId": "11nxx000001hKiFAAU",
16            "hydrationDetails": {
17                "contextAttrHydrationDetails": [
18                    {
19                        "sObjectDomain": "Order",
20                        "queryAttribute": "Name"
21                    }
22                ]
23            }
24        }
25    ]
26}
This example shows a JSON sample when context-to-context mappings exist.
1{
2  "contextMappings": [
3    {
4      "contextMappingId": "11jxx0000005UXnAAM",
5      "contextNodeMappings": {
6        "contextNodeMappings": [
7          {
8            "attributeMappings": {
9              "contextAttributeMappings": [
10                {
11                  "hydrationDetails": {
12                    "contextAttrContextHydrationDetails": [
13                      {
14                        "queryAttribute": "11nxx000001hGTFAA2",
15                        "parentAttributeMappingId": "11Rxx00000058LcEAI"
16                      }
17                    ]
18                  },
19                  "contextAttributeId": "11nxx000001ihzFAAQ",
20                  "contextInputAttributeName": "Node1A1"
21                }
22              ]
23            },
24            "contextNodeId": "11oxx000001HS0iAAG",
25            "mappedContextNodeId": "11oxx000001G0mSAAS",
26            "sObjectName": "Node1"
27          }
28        ]
29      },
30      "intents": [
31        "ASSOCIATION",
32        "HYDRATION",
33        "PERSISTENCE",
34        "TRANSLATION"
35      ],
36      "mappedContextDefinitionName": "11Oxx0000006PZ8EAM",
37      "isDefault": false
38    }
39  ]
40}
Properties
Name Type Description Required or Optional Available Version
contextAttributeId String ID of the context attribute record. Required 59.0
contextAttributeMappingId String ID of the context attribute mapping record. Required 59.0
contextInputAttributeName String Context input attribute name. Optional 59.0
hydrationDetails Context Attribute Hydration Details Input[] List of context attribute hydration detail. Optional 59.0
Response body for POST
Context Attribute Mapping List Output
Request body for PATCH
JSON example
1{
2    "contextAttributeMappings": [
3        {
4            "contextAttributeId": "11nxx000001hIgLAAU",
5            "hydrationDetails": {
6                "contextAttrHydrationDetails": [
7                    {
8                        "sObjectDomain": "Order",
9                        "queryAttribute": "Status"
10                    }
11                ]
12            }
13        },
14        {
15            "contextAttributeId": "11nxx000001hKiFAAU",
16            "hydrationDetails": {
17                "contextAttrHydrationDetails": [
18                    {
19                        "sObjectDomain": "Order",
20                        "queryAttribute": "Name"
21                    }
22                ]
23            }
24        }
25    ]
26}
This example shows a JSON sample when context-to-context mappings exist.
1{
2  "contextMappings": [
3    {
4      "contextMappingId": "11jxx0000005UXnAAM",
5      "contextNodeMappings": {
6        "contextNodeMappings": [
7          {
8            "attributeMappings": {
9              "contextAttributeMappings": [
10                {
11                  "hydrationDetails": {
12                    "contextAttrContextHydrationDetails": [
13                      {
14                        "queryAttribute": "11nxx000001hGTFAA2",
15                        "parentAttributeMappingId": "11Rxx00000058LcEAI"
16                      }
17                    ]
18                  },
19                  "contextAttributeId": "11nxx000001ihzFAAQ",
20                  "contextInputAttributeName": "Node1A1"
21                }
22              ]
23            },
24            "contextNodeId": "11oxx000001HS0iAAG",
25            "mappedContextNodeId": "11oxx000001G0mSAAS",
26            "sObjectName": "Node1"
27          }
28        ]
29      },
30      "intents": [
31        "ASSOCIATION",
32        "HYDRATION",
33        "PERSISTENCE",
34        "TRANSLATION"
35      ],
36      "mappedContextDefinitionName": "11Oxx0000006PZ8EAM",
37      "isDefault": false
38    }
39  ]
40}
Properties
Name Type Description Required or Optional Available Version
contextAttributeId String ID of the context attribute record. Required 59.0
contextAttributeMappingId String ID of the context attribute mapping record. Required 59.0
contextInputAttributeName String Context input attribute name. Optional 59.0
hydrationDetails Context Attribute Hydration Details Input[] List of context attribute hydration detail. Optional 59.0
Response body for PATCH
Context Attribute Mapping List