This action is available in API version 65.0 and later.
Supported REST HTTP Methods
URI: /services/data/vXX.X/actions/standard/getLifeSciCnfgFieldNmAndVal
Where XX.X is the latest API version.
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is your OAuth access token.
Inputs
| Input | Type | Description |
|---|---|---|
| userId | String | Required ID of the user for whom the configuration record is fetched. |
| categoryName | String | Required Name of the category whose configuration record is fetched. The category type is always hierarchy. |
| fieldNamesList | List<String> | Optional The comma-delimited list of field names of the configuration record that’s fetched. If this parameter is empty, the invocable action returns all the fields of the given category of configuration record for the specified user. |
Outputs
| Output | Type | Description |
|---|---|---|
| configurationFieldOutputRepresentations | List<Apex> | Collection of Apex RestApi.LsConfigFieldOutput records that contain key-value pairs of field names and their values belonging to the active configuration record that was fetched. |
Example
This sample request is for the Get Life Sciences Configuration Field Names and Values action.
{
"inputs": [
{
"userId" : "005xx00000114xxYAA",
"categoryName": "ProviderSummarization",
"fieldnamesList" : ["ProviderSummaryConfiguration"]
}
]
}
This sample input is for calling the Get Life Sciences Configuration Field Names and Values action from the Apex code.
Invocable.Action action = Invocable.Action.createStandardAction('getLifeSciCnfgFieldNmAndVal'); action.setInvocationParameter('userId', '005xx00000114xxYAA'); action.setInvocationParameter('categoryName', 'ProviderSummarization'); List<Invocable.Action.Result> results = action.invoke(); System.debug('result = ' + results);
This sample response is for the Get Life Sciences Configuration Field Names and Values action.
[
{
"actionName": "getLifeSciCnfgFieldNmAndVal",
"errors": null,
"invocationId": null,
"isSuccess": true,
"outcome": null,
"outputValues": {
"configurationFieldOutputRepresentations": [
{
"value": "lsc4ce__providersummary",
"name": "ProviderSummaryConfiguration"
}
]
},
"sortOrder": -1,
"version": 1
}
]