Flow REST call in REST step vs Script step

Nikodem
Tera Contributor

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.

1 REPLY 1

Hitoshi Ozawa
Giga Sage
Giga Sage

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.