1. Home
  2. /
  3. Developer Guide
  4. /
  5. JavaScript Library
  6. /
  7. Get Picklist GUID

Get Picklist GUID

This function is used to get the picklist Id based on the picklist label name provided.

Function: GetPicklistGUID(<Object Name>, <Field Name>, <Picklist Name>)Usage:

var PicklistID = GetPicklistGUID(“Company”, “Country”, “Lebanon”);

Or

var PicklistID = GetPicklistGUID(“Company”, “Country”, GetPicklistName(“Lead”, “Country”,lead.Country));

Output:Success:Picklist IdFailure:An error message will be displayed

Was this article helpful to you? No Yes

How can we help?