- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2016 01:38 PM
Hi all,
I am trying to retrieve incidents of a particular company from ServiceNow via REST API 'get' method. According to the wiki tutorial I have to pass the sys_id of company in sysparm_query parameter to filter out. But I want to pass the display value only; not the sys_id of it as i will not have the sys_id's of all companies in external clients/apps.
Please Help
Thanks
Sid
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2016 01:47 PM
You should be able to dotwalk to the name field. This query should work to pull incidents where the company field on the incident is "Company Name".
sysparm_query=company.name=Company Name

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2017 05:52 AM
You would pass the assignee value as a sys_id typically.