- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2025 02:53 AM
Hi,
How to create service account to call API. I need to create service account to call API an read all records from catalog item.
There is catalog item called 'ABC' and I need to read all records from that table and that record are stored in one table.
I need to call create service account and call API to retrieve all RITM and then we need to call API to retrieve table that stored User Registration data.
Can you please help me with step.
Regards,
Nivedita
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 11:54 PM
correct the scripted REST API resource needs to be given in postman
Also ensure you add prefix with the instance name etc in the URL
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 04:55 AM
share the script inside that scripted rest api
are you consuming the correct endpoint?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 05:46 AM
Hi @Ankur Bawiskar,
Please find script inside scripted rest api :
Can you please confirm for above point and help me to correct that.
Regards,
Nivedit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 05:57 AM
you need to give endpoint of scripted rest api resource and not the scripted rest api
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 06:07 AM
Hi @Ankur Bawiskar,
Resource path - /api/kpm50/ritm_vars_api
You are saying above scripted rest api resource endpoint need to add in Postman endpoint?
Can you please help where exactly need to add that.
Regards,
Nivedita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 11:51 PM
Hi @Ankur Bawiskar,
I need to complete that by today evening.
Resource path - /api/kpm50/ritm_vars_api
Can you please confirm where exactly need to be add above Resource path.
Regards,
Nivedita