Update end of URL to be current date

Is there a way to update a URL in Use Application Browser to have the current date? The URL contains a date at the end and I want this to automatically update. Thank you.

image

Yes, you can.

Before Use Browser Activity, put assign activity and assign to string variable this expression:

DateTime.Now.ToString(“yyyyMMdd”) (current date in your format)

Then in Browser URL you can put

https://www.espn.com/nba/schedules/_/date/”+your_string_variable

Or just put directly:

https://www.espn.com/nba/schedules/_/date/"+DateTime.Now.ToString("yyyyMMdd”)

Remember, if you need run your workflow retroactively, maybe its good idea pass the date as argument

Cheers

PS: Mark as solution if it helps

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