Get Picklist Name

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

  • Function: GetPicklistName(<Object Name>, <Field Name>, <Picklist GUID>)
  • Usage:

var PicklistLabel = GetPicklistName("Lead", "Country", lead.Country);

Or

var PicklistLabel = GetPicklistName("Lead", "Country", 1332647461507827577);

  • Output:
    • Success:
      Picklist label
    • Failure:
      An error message will be displayed
Was this article helpful to you? Yes No

How can we help?