The CreatorCon Call for Content is officially open! Get started here.

What is the best way to call an outbound Rest Message

AnirudhKumar
Mega Sage

Hi,

I want to send an outbound request that is initiated via a script. I have 2 options - Create a Subflow/Action or create a REST Message. I'm hesitant to use the Subflow/Action as the response will not be synchronous and so the output cannot be captured (unless I poll the sys_flow_runtime_value table).

 

So for outbound calls made through script is REST Message better than using Flow Actions/Subflow?

Feel free to punch holes in my logic...

1 ACCEPTED SOLUTION

Nate Wert1
Giga Guru

I don't believe it is one or the other.  If I am going to make an outbound REST call, I am going to set it up in "sys_rest_message".  Then I will call it from where I want, including a subflow.  Not sure this answers your question but will try to take another stab at it if you have a bit more detail.

View solution in original post

2 REPLIES 2

Nate Wert1
Giga Guru

I don't believe it is one or the other.  If I am going to make an outbound REST call, I am going to set it up in "sys_rest_message".  Then I will call it from where I want, including a subflow.  Not sure this answers your question but will try to take another stab at it if you have a bit more detail.

Thanks Nate, I was thinking we could also use the 'REST step' in a Flow Action to perform the same thing.

The downside of using a sys_rest_message configuration is that we cannot tag a Retry Policy to it and have to script the retry logic. Whereas on the 'REST Step' we have that option.