- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2016 02:06 PM
Can you search all incident fields for keywords (full text search) via the rest api? Is there another way to do full text search from outside servicenow?
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2016 08:34 PM
I was just in a meeting with some folks from Service-Now about the needs I was having to do search. There is no restful api to the global search. They said they appreciated the feedback, but gave no details as what or when anything would be available. With that being said the best you are going to get is to do keyword gliderecord calls. However, that doesnt give you a way to order by best match.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2017 10:53 AM
I've since found out you can do this.
Here's the call via CURL;
curl --request GET \
--header 'accept: application/json' \
--header 'authorization: Basic yourbasicauthstringhere' \
--header 'content-type: application/json' \
sysparm_groups = sys_id of search group
sysparm_search = term your searching for.
Response looks like this;
{
"result": {
"groups": [{
"tables": [{
"label": "Incident",
"name": "incident",
"id": "8c58db5d0a0a0b0701130dfff1fe4ee0",
"filter": "",
"condition_query": "",
"label_plural": "Incidents"
},
{
"label": "Change Request",
"name": "change_request",
"id": "8c58ef080a0a0b0700eb143ac2e5de7e",
"filter": "Active = true",
"condition_query": "\n\t\t\tactive=true^EQ\n\t\t\t",
"label_plural": "Change Requests"
},
"description": "Search task records (Incidents, Change Requests, Problems, etc.)",
"name": "Tasks",
"id": "8c58a5aa0a0a0b07008047e8ef0fe07d",
"result_count": 10363,
"search_results": [{
"stuff": "vals"
}, {
"stuff",
"vals"
}];
}
]
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2017 05:46 AM
Fantastic, I have managed to get the api to return results from the search quite happily, now on to parsing and refining the data that it returns and what we can do to serialize it.