Get Started with Communications, Media, and Energy (CME) Common APIs
Documentation Changelog
EPC API Swagger Reference
EPC API Response Format
Create Versions of Picklists
Retrieve the Versions of Picklists
Retrieve the versions of picklists using REST APIs by specifying the ID of the picklist in the resource URI.
1GET /v2/epc/picklists/{picklist-ID}/versions1readPicklist1APIPicklistVersionRestHandler1PCAppHandlerCommunication (vlocity_cmt)
For API parameter names and descriptions, see the Swagger (OpenAPI) reference documentation for Industries EPC REST APIs.
| Response Format | JSON |
|---|---|
| Resource URL | /services/apexrest/{namespace}/v2/epc/picklists/{picklist-id}/versions |
1GET /v2/epc/picklists/01t3h000001gyCFAAY/versions1{
2 "epcResponse": {
3 "entities": [
4 {
5 "supplimentryEntity": [
6 {
7 "attributes": {
8 "type": "Picklist2",
9 "url": "/services/data/v52.0/sobjects/Picklist2/01t3h000001gyCFAAY"
10 },
11 "vlocity_cmt__VersionLabel__c": "Version-1",
12 "Name": "Picklist-Ashish",
13 "PicklistCode": "Picklist-Ashish",
14 "vlocity_cmt__SpecificationType__c": "Offer",
15 "vlocity_cmt__SpecificationSubType__c": "Bundle",
16 "vlocity_cmt__LifecycleStatus__c": "Draft",
17 "vlocity_cmt__GlobalGroupKey__c": "a4096cc5-8bbb-cfd5-7b93-869a7c2b4caf",
18 "RecordTypeId": "0123h000000slEnAAI",
19 "Id": "01t3h000001gyCFAAY",
20 "RecordType": {
21 "attributes": {
22 "type": "RecordType",
23 "url": "/services/data/v52.0/sobjects/RecordType/0123h000000slEnAAI"
24 },
25 "Id": "0123h000000slEnAAI",
26 "Name": "Picklist"
27 }
28 },
29 {
30 "attributes": {
31 "type": "Picklist2",
32 "url": "/services/data/v52.0/sobjects/Picklist2/01t3h000001h1uxAAA"
33 },
34 "vlocity_cmt__VersionLabel__c": "Version-2",
35 "Name": "Picklist-Ashish",
36 "PicklistCode": "Picklist-Ashish",
37 "vlocity_cmt__SpecificationType__c": "Offer",
38 "vlocity_cmt__SpecificationSubType__c": "Bundle",
39 "vlocity_cmt__LifecycleStatus__c": "Draft",
40 "vlocity_cmt__GlobalGroupKey__c": "a4096cc5-8bbb-cfd5-7b93-869a7c2b4caf",
41 "RecordTypeId": "0123h000000slEnAAI",
42 "Id": "01t3h000001h1uxAAA",
43 "RecordType": {
44 "attributes": {
45 "type": "RecordType",
46 "url": "/services/data/v52.0/sobjects/RecordType/0123h000000slEnAAI"
47 },
48 "Id": "0123h000000slEnAAI",
49 "Name": "Picklist"
50 }
51 }
52 ],
53 "entity": {
54 "attributes": {
55 "type": "Picklist2",
56 "url": "/services/data/v52.0/sobjects/Picklist2/01t3h000001gyCFAAY"
57 },
58 "vlocity_cmt__VersionLabel__c": "Version-1",
59 "Name": "Picklist-Ashish",
60 "PicklistCode": "Picklist-Ashish",
61 "vlocity_cmt__SpecificationType__c": "Offer",
62 "vlocity_cmt__SpecificationSubType__c": "Bundle",
63 "vlocity_cmt__LifecycleStatus__c": "Draft",
64 "vlocity_cmt__GlobalGroupKey__c": "a4096cc5-8bbb-cfd5-7b93-869a7c2b4caf",
65 "RecordTypeId": "0123h000000slEnAAI",
66 "Id": "01t3h000001gyCFAAY",
67 "RecordType": {
68 "attributes": {
69 "type": "RecordType",
70 "url": "/services/data/v52.0/sobjects/RecordType/0123h000000slEnAAI"
71 },
72 "Id": "0123h000000slEnAAI",
73 "Name": "Picklist"
74 }
75 }
76 }
77 ],
78 "overallResult": "success"
79 }
80}