- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2017 05:45 PM
Hello,
I need some help in creating REST API URL with OR condition.
e.g. Assigned Group = A OR Assigned Group = B OR Assigned Group = C
https://xxx.service-now.com/api/now/table/change_request?sysparm_query=assignment_group='A'
https://xxx.service-now.com/api/now/table/change_request?sysparm_query=assignment_group='B'
https://xxx.service-now.com/api/now/table/change_request?sysparm_query=assignment_group='C'
How can I use OR condition to get all groups in one call? They work good individually.
Appreciate your help.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2017 06:42 PM
Hi,
Select the groups and copy the query, your query should look something like below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2017 06:42 PM
Hi,
Select the groups and copy the query, your query should look something like below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2017 07:44 PM
Hi Bharath,
Excellent solution. Right on target.
This really helped me to fulfill my requirements.
Thank you so much,
Rajan Mehta
