Retrieve Details of Items in a Picklist

Retrieve the details of items in a picklist by specifying its ID in the resource URI.

1GET v2/epc/picklists/{picklist_ID}/items

Remote Method 

1readPicklistValue

REST Handler 

1APIPicklistItemRestHandler

Apex Remote Service 

1PCAppHandler

Package 

Communication (vlocity_cmt)

API Parameters and Response Format 

For API parameter names and descriptions, see the Swagger (OpenAPI) reference documentation for Industries EPC REST APIs.

Resource Information 

Response FormatJSON
Resource URL/services/apexrest/{namespace}/v2/epc/picklists/{picklist_ID}/items

Example Request 

1GET v2/epc/picklists/01t3h000001gyCFAAY/items

Example Result 

1{
2    "epcResponse": {
3        "entities": [
4            {
5                "entity": {
6                    "attributes": {
7                        "type": "Product2",
8                        "url": "/services/data/v52.0/sobjects/Product2/01t3h000001gyCFAAY"
9                    },
10                    "vlocity_cmt__VersionLabel__c": "Version-1",
11                    "Name": "Product-0004",
12                    "ProductCode": "Product-0004",
13                    "vlocity_cmt__SpecificationType__c": "Offer",
14                    "vlocity_cmt__SpecificationSubType__c": "Bundle",
15                    "vlocity_cmt__LifecycleStatus__c": "Draft",
16                    "vlocity_cmt__GlobalGroupKey__c": "a4096cc5-8bbb-cfd5-7b93-869a7c2b4caf",
17                    "RecordTypeId": "0123h000000slEnAAI",
18                    "Id": "01t3h000001gyCFAAY",
19                    "RecordType": {
20                        "attributes": {
21                            "type": "RecordType",
22                            "url": "/services/data/v52.0/sobjects/RecordType/0123h000000slEnAAI"
23                        },
24                        "Id": "0123h000000slEnAAI",
25                        "Name": "Product"
26                    }
27                }
28            }
29        ],
30        "overallResult": "success"
31    }
32}