- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2019 01:04 AM
In ServiceNow, we already have a rest API to fetch incident based on short_description like below example.
/api/now/table/{tableName}?short_description=short_description
I want to send a short description as a regex. For example, if I send "error" as short_description I want to get all the incidents to which "error" word is part of. Please suggest if there is any way to achieve this.
Thank you
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2019 06:44 PM
You can use an encoded query string where short description contains "error". The API call would look like this:
/api/now/table/incident?sysparm_query=short_descriptionCONTAINSerror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2019 06:44 PM
You can use an encoded query string where short description contains "error". The API call would look like this:
/api/now/table/incident?sysparm_query=short_descriptionCONTAINSerror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2020 07:08 AM
It looks like this querry returns an empty string / structure:
/api/now/table/incident?sysparm_query=short_descriptionCONTAINSmytext
{
"result": []
}
despite 2 REQuests just registered
