- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2015 10:33 AM
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?
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2015 10:56 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2015 06:45 AM
Thanks Joshua! That was exactly what I was looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2015 06:46 AM
Not a problem. Glad I could help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2016 12:23 AM
I am trying to get images of the item using the rest api /api/sn_sc/servicecatalog/items?sysparm_text=laptop
the image field is missing in the response.
when I try the rest api api/sn_sc/servicecatalog/items/8b6abec14f86c68085b73485f110c7fa it does not give the field.
even I tried on api/now/table/sc_cat_item/8b6abec14f86c68085b73485f110c7fa
the field is present here but comes blank..
but when I try on the UI I see an image...
what api will help fetch me the image?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2016 03:42 AM
Images are stored as attachments in the sys_attachment table. You can use the attachment API to get them:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2017 04:52 AM
Hi David,
Would you please post an example of API you've used? I also have the same task, but can't get the list of variables.
Thanks,
Pavlo