How to have Scripted REST API in flow designer ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2025 09:01 PM
Hi,
How to incorporate the Scripted REST API in flow designer as we do it for Outbound REST message ?
In Flow Designer, We add REST message by creating new Action of REST and importing REST message. Then adding that into the flow.
We have Bidirectional integration of ServiceNow with BMC. After making 3 API REST calls, a ticket is created in BMC. Then after closing it manually in BMC they will call our Scripted REST API of Scripted Web service and send an ID as a parameter. Then we need to make 4th Outbound call by having the provided id and in response we will receive Incident number.
We are doing it all in flow designer.
Not getting how to incorporate the Scripted REST API in flow. Could you please help me on this ?
@Dr Atul G- LNG @Ankur Bawiskar @Mohit Kaushik @Harish Bainsla
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2025 09:12 PM
In flow, wait untill you receive the ID (I believe you will be storing ID anywhere in SN) then you call the 4th REST API using action. Hope this helps
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 05:58 AM
Hi @Murtaza Saify ,
Thanks you for the quick response.
No we are not storing this ID in anywhere in SN.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2025 11:28 PM
Hi @Thej1 ,
dropping some points that might help you
The Scripted REST API endpoint is correctly configured and accessible.
The flow is properly set up to handle the input (id) and make the Outbound REST call.
Proper error handling is implemented in both the Scripted REST API and the flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 06:39 AM
Scripted REST API is when 3rd party consumes ServiceNow endpoint.
In your flow REST STEP you can configure to consume that endpoint. It's similar to how you are consuming external API endpoints.
In your case they will have to consume ServiceNow Scripted REST API endpoint, you please share the endpoint URL, authentication details, request body format etc
Why are you worrying about the flow?
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