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.

How to get the list of possible categories for incident or change via API

tum4ik
Kilo Explorer

How to get this list via API?

find_real_file.png

1 ACCEPTED SOLUTION

Mike Allen
Mega Sage

That is a choice list, so you would make your API call to sys_choice, provide the table, field, etc, and your choices will be returned in the response.


View solution in original post

2 REPLIES 2

Mike Allen
Mega Sage

That is a choice list, so you would make your API call to sys_choice, provide the table, field, etc, and your choices will be returned in the response.


name=incident^element=category^inactive=false will be the sysparm_query you would set.