Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Get field value with column label

Habib2
Tera Expert

Hi,

I want to retrieve field values with column labels in script include, i dont have column names, please suggest if its possible.

1 ACCEPTED SOLUTION

Habib2
Tera Expert

Hi, i have a name-value pair field which has only labels, i need to populate values in value fields, 

however I'm able to achieve this with below script, thank you all for your responses 🙂

Habib2_0-1710661512711.png

 
Habib2_1-1710661867058.png

 

View solution in original post

11 REPLIES 11

Danish Bhairag2
Tera Sage

Hi @Habib2 ,

 

Please take a look at this article for solution

https://www.servicenow.com/community/developer-blog/utility-script-to-get-all-choice-labels-and-valu...

 

Thanks,

Danish

Hi, i have column label, i want to get field value of the specific field with the label name or atleast get column name

Hi @Habib2,

 

Could u provide me any example for any field whose value u want to fetch the value.

 

Thanks,

Danish

for example, on an incident form, how to get the value of 'Assigned To' field without column name