- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 01:36 PM
When doing a REST API search for incidents I get an HTTP error 400
Doing
search_incident_endpoint='/api/now/table/incident?sysparm_query=active%3Dtrue%5EORDERBYDESCnumber%5Estate<3%5E%5Estate<3%5Eshort_description%5Esysparm_limit=10'
"Setting request endpoint to /api/now/table/incident?sysparm_query=active%3Dtrue%5EORDERBYDESCnumber%short_descriptionLIKEBH1150#V%5Esysparm_limit=10"
I think it doesn't like the BH1150#V (# in jobname) It works fine without a # sign in logic.....
Solved! Go to Solution.
- Labels:
-
Search
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 06:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 01:50 PM
Try using %23 so that it is properly url encoded.
Please mark helpful/correct if this has helped you.
Thanks,
Logan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 06:52 AM
Perfect . Thanks Logon

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 02:45 PM
It's possible to get the url by using REST API Explorer.
Paste the query into sysparm_query field and click on the "Send" button
URL to use will appear further down the page in the Request section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 06:52 AM
Thank you for the Info .. that worked great!