Get Current URL

Hi guys

I’m looking for a quick and effective way to retrieve the current URL in the current browser window I am attached to.

I’ve looked in the forums for some examples, and some name “Get Attribute” but I just can’t seem to get them to work!

Would appreciate any advice. I need to retrieve the current (lengthy) URL and string-split it to get a certain string of numbers out of it.

Thanks!

1 Like

Get Attribute activity should work.
Set its selector to any stable element on the web page and set the Attribute property to “url” (with the double quotes - type the double quotes in and do not copy from this page, or better yet, just select url from the drop down list of the activity in the workflow) and set Result property to a variable (create one if there’s none).
The variable should contain the url after running the Get Attribute activity.

7 Likes

Hi,
This might help you:
Refer the attachment workflow,
Please post if this helps:

Main.xaml (5.5 KB)

6 Likes

This worked perfectly, thank you so very much!

2 Likes

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