Get Data Using Context Definition Action
This action is available in API version 64.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/v66.0/actions/custom/contextDataProvider/DefaultContextDataProvider
- Formats
- JSON, XML
- HTTP Methods
- GET
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| contextDefinitionName |
|
| contextMappingName |
|
| contextNodeApiName |
|
| contextNodesDataLimit |
|
| contextNodesSortFieldName |
|
| contextNodesSortIsAscending |
|
| contextRecordId |
|
| contextObjectName |
|
| timePeriodInWeeks |
|
Outputs
| Output | Details |
|---|---|
| contextData |
|
Example
- GET
-
This sample request is for the Get Data using Context Definition action.
1 2{ 3 "inputs": [ 4 { 5 "contextDefinitionName": "AccountOpportunity__stdctx", 6 "contextMappingName": "AccountOpportunityMappings", 7 "contextId": "02ixx0000005yLxxAI", 8 "contextObjectName": "Account" 9 } 10 ] 11}This sample response is for the Get Data using Context Definition action.
1 2{ 3 "Account": [ 4 { 5 "AccountName": "Acme", 6 "Opportunity": [ 7 { 8 "CreatedDate": "2025-01-20T00:00:00.000+0000", 9 "ParentReference": "001xx00000pfHIsxxM", 10 "OpportunityName": "Acme - 600 Widgets", 11 "OpportunityStage": "Needs Analysis", 12 "OpportunityCloseDate": "2023-01-03T00:00:00.000+0000" 13 }, 14 { 15 "CreatedDate": "2025-01-20T00:00:00.000+0000", 16 "ParentReference": "001xx00000pfHIsxxM", 17 "OpportunityName": "Acme - 1,200 Widgets", 18 "OpportunityStage": "Value Proposition", 19 "OpportunityCloseDate": "2022-11-07T00:00:00.000+0000" 20 }, 21 { 22 "CreatedDate": "2025-01-20T00:00:00.000+0000", 23 "ParentReference": "001xx00000pfHIsxxM", 24 "OpportunityName": "Acme - 200 Widgets", 25 "OpportunityStage": "Prospecting", 26 "OpportunityCloseDate": "2023-03-08T00:00:00.000+0000" 27 } 28 ] 29 } 30 ] 31}