1. Home
  2. Developer Guide
  3. JavaScript Library
  4. 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? Yes No

How can we help?