- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2020 02:24 AM
How can i create a scripted REST API that Retrieve incident state and send back to POSTMAN(or any third party) based on received incident number from third party. Can someone hepl with exact steps to follow
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2020 02:56 AM
Hi,
Refer below links:
Using POSTMAN to debug & create REST APIs (EX: Creating & searching new incidents)
https://community.servicenow.com/community?id=community_blog&sys_id=0f5de629dbd0dbc01dcaf3231f9619ca
ServiceNow Scripted Rest API (Web Services)/ Rest API Explorer / POSTMAN Tool
https://www.youtube.com/watch?v=HmuCXNT7YKE
Please Mark ✅ Correct and Helpful based on the impact.
Thanks,
Vishakha Pradhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2020 02:33 AM
Hi,
you can use http GET method
Define the url parameter
refer below links on getting started with Scripted REST API
Scripted REST API example - script samples
Scripted REST API example - script samples
Scripted REST API with XML Response
Scripted Rest API "PUT" method application.
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
10-21-2020 02:56 AM
Hi,
Refer below links:
Using POSTMAN to debug & create REST APIs (EX: Creating & searching new incidents)
https://community.servicenow.com/community?id=community_blog&sys_id=0f5de629dbd0dbc01dcaf3231f9619ca
ServiceNow Scripted Rest API (Web Services)/ Rest API Explorer / POSTMAN Tool
https://www.youtube.com/watch?v=HmuCXNT7YKE
Please Mark ✅ Correct and Helpful based on the impact.
Thanks,
Vishakha Pradhan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2020 02:58 AM
Hi,
Refer to this link which shows how you can fetch the value from third party using GET.
Once you get the value, then use SN REST API Explorer and can build the API with the data that you want to post to 3rd party.
Mark the comment as a correct answer and helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2020 05:52 AM
@SNOW
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.
If not, please let us know if you need some more assistance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader