Using Variable In another sequence

Hi everyone please help, so I have a variable I created in SEQ1
image

And I want to use it in SEQ2

@Anelisa_Bolosha1

Its better to convert it to argument and make the direction as out

If you want to use in another workflow?

Is this your requirement?

Hi @Anelisa_Bolosha1

Create an In Argument in Sequence 2 and when you invoke the Sequence 2 file map the argument you created with the variable in sequence 1. Will help if further assistance needed.

Regards,

Could you please send a xaml file as an example

@Anelisa_Bolosha1

Sequence 2 has variable created


Sequence 3 has argument created

when you call the workflow you can map the variables and arguments.

Hope it helps!!

1 Like

That is absolutely not how you do it.

@Anelisa_Bolosha1 you need to change the scope of the variable in the variables pane so that it’s at a higher scope and therefore available to both sequences.

Why are you assuming Invoke Workflow? You can have multiple Sequences without using Invoke Workflow.

@Anelisa_Bolosha1 please show us your code so we can understand what you’re doing.

This is my seq1:

This is my seq2:


There is some wrong in the invoke

This ‘main’ is my seq1 then ‘API_Autocase_Create’ is my seq2
image

@Anelisa_Bolosha1

Change the scope of emailbody to main

Can you explain where you are facing issue

In the image ever thing is fine i think?

I want to print out email body in seq2

The scope of emailbody is the ‘sequence’

From Seq1 you are passing emailbody to emailAPI_Body as an argument.

So ideally, in seq2 you should use emailAPI_Body variable and not emailbody variable

Hope this helps @Anelisa_Bolosha1

1 Like

Variables are intended to use inside the workflow only. If you want to pass value to another workflow you need to create it as an argument.

1 Like

Solved thank you so much

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.