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 Id
    • Failure:
      An error message will be displayed
Was this article helpful to you? Yes No

How can we help?