Is it possible to create facets for scripted rest api external search sources for Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 11:41 AM
Hi All,
We are trying to bring external data to ServiceNow through API using scripted source in Service Portal.
One of the challenge we are facing to create facets for this external API.
Is it possible to create facets for scripted sources which have external API.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 11:55 AM
Hi @Vineet Yadav1,
Not sure you could use rest directly, but you could use Remote Tables for this use case:
Remote tables (servicenow.com)
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 11:59 AM
Hi @Peter
Thanks for quick response.
We have data fetch script where REST api is defined and getting results.
Not sure how to bind the facets with data fetch script.
I see example of SeviceNow tables in docs how its binding but could not get for external rest api.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 12:30 PM
Hi @Vineet Yadav1,
Create a remote table as provided in the docs. Then go through the second part of the docs to get the documentation Create a script definition for a remote table (servicenow.com)
to get your data in the table.
Since it is a remote table, it only holds the information as long as you need, and refreshes the data whenever the table is queried.
Because of that you could use it in search sources on the portal.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 04:02 AM
Hi @Peter Bodelier
Sure will give try using Remote Table.
Is any other way without using remote table ?