Use of CheckRole action?

Use of CheckRole action?

  

In the following action flow, I do not understand the use of the action. Can't I get the same effect using only the if node ? there is something under the hood ?



TIA

Hi Alberto,

Is the IF only checking the output of the "CheckRole" action? If so, then yes, you could use the action directly inside the IF and the effect would be the same. Some people just like to have the action clearly visible in the flow, like in the image you posted. I think it can make the code easier to read and understand.

Solution

Also, sometimes you need the result of that action multiple times in 1 flow.

So from a performance perspective, it would make sense to call the action 1 time explicitly, like in your screenshot, and then use the result multiple times in the remainder of the flow, instead of calling the same function multiple times.

Solution

Thanks to both contributions.