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 labelFailure:An error message will be displayed