How to fetch Single Record by using Get Method through using TABLE API in REST API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2020 04:04 AM
How to fetch Single Record by using Get Method at TABLE API in REST API?
Please provide examples.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2020 08:52 AM
Hope you are doing good.
If your query is resolved please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2020 10:57 PM
Hope you are doing good.
Let me know if I have answered your question.
If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2020 11:16 PM
If the question is about just receiving 1 record, Sudhanshu's reply of specifying parameter "sysparam_limit" to "1".
If the question is about getting a specific record, Muhammad's reply of specifying sys_id is correct.
The question also asked for an example and not just a syntax so below are example of these 2 cases. Substitute "<ServiceNow instance name>" with the instance name of ServiceNow being used.
Case 1: Example of getting the first record in Incident table.
https://<ServiceNow instance name>.service-now.com/api/now/table/incident?sysparm_limit=1
Case 2:Example of getting an Incident record with sys_id = '46e2fee9a9fe19810049b49dee0daf58'
https://<ServiceNow instance name>.service-now.com/api/now/table/incident?sysparm_query=46e2fee9a9fe19810049b49dee0daf58
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2023 12:40 AM
Hi,
Anyone knows how to get the most recent record (so, not a random record) when you don't know the Sys ID?