Context Attribute Mapping (POST, PATCH)
Create context attribute mapping. Update context attribute mapping.
Resource
1/connect/context-node-mappings/contextNodeMappingId/context-attribute-mappingsExample for POST
1https://yourInstance.salesforce.com/services/data/v59.0/connect/context-node-mappings/contextNodeMappingId/context-attribute-mappingsExample for PATCH
1https://yourInstance.salesforce.com/services/data/v59.0/connect/context-node-mappings/contextNodeMappingId/context-attribute-mappingsAvailable 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}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 |
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}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 |