Flow REST call in REST step vs Script step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 04:28 PM
I'm new to the flow designer and I noticed that for integration purpose I can both call a rest method in script step or use REST step to make a call. What are pros and cons of choosing one option over the other? They seem very simmilar to me.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 05:10 PM
Hi Nikodem,
I usually use the Script step because I usually test the API using REST API Explorer. After testing, I just copy the generated code to the Script step. Even if I'm not calling ServiceNow, I can copy and paste the code. This saved me time. The downside is that it requires some JavaScript knowledge on how to call an API. Also, Script doesn't require Integration Hub subscription.
The REST step doesn't require JavaScript knowledge. It can be setup with no-coding. It's included in Integration Hub subscription.