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