- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2016 01:43 PM
Hi,
I'm trying to use the REST TABLE API (Fuji, Latest) to pull dictionary entries such as Priority, State etc. I can get access to the sys_dictionary table but not seeing how I get to the dictionaries within. Please help.
Thanks
MM
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2016 09:25 PM
Hi MM,
If you want to retrieve all the categories for the incident table then you may want to query the sys_choice table where table is incident and element is category.
The query string will be something like: sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHcategory
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2016 07:17 PM
Tony;
I want to retrieve ALL of the dictionary entries for Category (as an example) using the REST API.
Pseudo example;
https://myinstance.service-now.com/api/now/table/sys_dictionary?sysparm_limit=10&sysparm_query=GIVE ME ALL CATEGORIES FOR INCIDENT TABLE
The goal being to retrieve all key value pairs as per below;
Thank You
MM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2016 09:25 PM
Hi MM,
If you want to retrieve all the categories for the incident table then you may want to query the sys_choice table where table is incident and element is category.
The query string will be something like: sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHcategory
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2016 02:05 AM
You nailed it Berny - thanks for the assistance..
MM