---
schema_version: "1"
id: 1f6a240d94b8c05a8310ebab5466a1aa89a83a00d58e1462ab465361b01cdb60
title: Get Life Sciences Configuration Field Names and Values
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/ls_actions_get_ls_config_key_values.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/ls_actions_get_ls_config_key_values.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9e6120c41eea0ed31604f4254cc791f7d6827488c2ad888342b6abfc952d527c
description: Gets key-value pairs of field names and their values for Life Sciences configuration records of a given category.
---
# Get Life Sciences Configuration Field Names and Values

Gets key-value pairs of field names and their values for Life Sciences configuration records of a given category.

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

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d491651e98">Input</th>

              <th class="featureTableHeader  " id="d491651e101">Type</th>

              <th class="featureTableHeader  " id="d491651e104">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d491651e98" data-title="Input"><span class="keyword parmname">userId</span></td>

              <td class="entry" headers="d491651e101" data-title="Type">String</td>

              <td class="entry" headers="d491651e104" data-title="Description">Required<p class="p">ID of the user for whom the configuration record is
                  fetched.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d491651e98" data-title="Input"><span class="keyword parmname">categoryName</span></td>

              <td class="entry" headers="d491651e101" data-title="Type">String</td>

              <td class="entry" headers="d491651e104" data-title="Description">Required<p class="p">Name of the category whose configuration record is
                  fetched. The category type is always
                  <span class="keyword parmname">hierarchy</span>.
                </p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d491651e98" data-title="Input"><span class="keyword parmname">fieldNamesList</span></td>

              <td class="entry" headers="d491651e101" data-title="Type">List&lt;String&gt;</td>

              <td class="entry" headers="d491651e104" data-title="Description">Optional<p class="p">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.</p>
              </td>

            </tr>

          </tbody>

        </table>

## 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
    }
\]