How to pass to pass the browser variable between workfows?

Hi Team,

I am opening a browser using open browser activity and saving its output to a variable called browser_opt. Well in next xaml i need to use chrome to open a link. however instead of killing the chrome and reopening the browser again, i would like to take the browser variable and give the url so that in the existing browser itself i can open a new tab.

In the process of doing so I see that
exising browser opt-----> browser_opt(uipath.code.browser) is the type.
while using the open browser in different xaml I am just giving the browser_opt which i got a in_argument. but the error says as follows.

Hi @Jeevan_Reddy

Welcome to Uipath community

Check out the document and blog

How to pass variables as UiPath arguments example.

Hope it will helps

Regards
Gokul

Hi @Jeevan_Reddy ,

Just make browser_opt as an argument in the current workflow and pass it as in_browser_opt in another workflow.
Thanks.

Kindly find the steps @Jeevan_Reddy

Step 1 - In choice sequence, Create argument named first_name_out as Out argument.
Step 2 - Go to main sequence and Create a variable as first_name_main_variable
Step 3 - Go to invoke workflow activity of choice sequence and in import arguments assign the variable first_name_main_variable corresponding to first_name_out argument
Step 4 - Go inside the answer choices Create argument named first_name_in as In.
Step 5 - Go to invoke workflow activity of answer sequence and in import arguments assign the variable first_name_main_variable corresponding to first_name_in argument

Regards
Gokul

HI,

Hope the following sample helps you.

Main(Caller)

Callee

Sample20221109-3.zip (3.9 KB)

Regards,

You can use attach browser then send hot key to open new tab and browse the link.