cancel
Showing results for 
Search instead for 
Did you mean: 

Global variable in sapirpa cloud studio?

04-21-2022 12:15 PM
ramya_t_bpterp Explorer
934 views 2 comments Go to solution
SAP Managed Tags
Subscribe

Hello ,

I am working on use case where it have 2 workflows (normal and error workflow), here i need to access output of one workflow into input of error workflow, so for that i need to create global variable . can any one suggest how to create global variable for this type of condition.

Thanks in advance.
Regards,
Ramya.T

Accepted Solutions (1)

Accepted Solutions (1)

former_member638425
Participant

Hello,

You can build complex automation using lots of different blocks and branches in the workflow of your automation. When you use a variable inside any block, the tool will prevent you to use the variable outside the block. The variable is called Scoped Variable. By using global variables, you can create a variable outside the scope of a block, and then assign it a value inside the branches of the block. To do so, please check out the example here, a variable is defined outside the Try/Catch block. You can assign a value to the variable inside the branches of the Try/Catch block.

ramya_t_bpterp
Explorer
0 Likes

Thanks rosaorihuela

Answers (0)