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.

Request Item variables via REST API

bernard6
Mega Expert

I have a Catalog Item that has variables.   When I perform a Get for a request Item for that Catalog Item (sc_req_item) via the REST API it doesn't return the values that were set for the variables on that Request Item.   Is there a way to have these included in the Get or a way to query that information from the REST API?

1 ACCEPTED SOLUTION

joshua_bice
Giga Expert

You need to use the variable ownership table (sc_item_option_mtom). Query by the Request Item and you'll get a list of variables for it.


View solution in original post

16 REPLIES 16

Hi Pavlo,



I didn't end up doing this so i don't have anything to share.   Though you should be able to query the table like Joshua suggested above and get back the variables and their values for a specific request item.



Thanks,
David Bernard


hey david,


                                Are you done with the API that Pavlo asked? I have same query.



thanks in Advance