Calling ServiceNow Open APIs in a Flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2023 09:33 AM
Hello,
I have a requirement where an external app calls Service Now's Product Order Open API to create a new order. However, now, we the creation of the order to take place in a flow since we want it to transform the data received.
- Is there any way to accomplish this natively in the flow designer without using a script? I'm expecting something like an action that creates the order without me needing to call the API as a REST action.
- If no, can I call the Open API as a REST action in the flow, and how? Does ServiceNow manage the network call internally or does it switch networks?
Thank you.
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2023 05:08 AM
If I'm understanding correctly, the external app will no longer directly call the Product Order OpenAPI, and you want to receive their call and transform it. In this case, I'm not sure Flow is the way to go. Instead I would either:
- Have them do an insert into a transform table and trigger a transform map that uses a script to trigger the api
or
- Have them call a Scripted REST API where you can convert their call into the format needed to call the api