Main workflow, sub workflow - both on same website

Hi,

I have main-workflow which invokes same sub-workflow 3 times.
Main-workflow starts on website and sub-workflow should continue working on same website.

My problem is, how to continue working on same website within sub-workflow. As by now, I just copied the procedure from main workflow, but it returns error something like “you should use attach browser, activate window,…”.

Well, I suppose this situation is already within the forum. The problem is, I do not know how to search for it. If anyone can help me?

Thx and kind regards,
Vanja

Hi @VanjaV

You need to use the attach browser in the sub workflow for the same instance that used in Main workflow!

Regards

1 Like

Hi, @pravin_calvin.

In main workflow I use open browser with main website URL.
At the time of invoking the sub-workflow the main website is different. How to get it?

Thx. Kind Regards,
Vanja

Hi,

you can pass the UiBrowser variable through the sub-workflow, so that it use the same session as the main one.
You can store the variable as Output Element in the first workflow
image

And then pass it as Input Element in the subprocess.

1 Like

Hi, @stefano_negro

Thx. Which activity is it in your screenshot?

Kind Regards,
Vanja

Hi Vanja,

it’s the Use Application/Browser Activity.
You can find the docs at this link

Thx. @stefano_negro

in which package is this activity? This information in always missing in UiPath Docs.

Kind Regards,
Vanja

Hi to everyone,

I have solved it that way, since main workflow is using OpenBrowser Activity:

image

image

And it is working now.

Thank you all for suggestions. :slight_smile:

Kind Regards,
Vanja

1 Like

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