Modify URL parameter?

Hi all! I have a URL that looks like this:
https://www.website.com/request?day=2021-05-**10**T00:00:00.000-04:00&location_id=XXX&slot_type=XXX&key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

I need UI Vision to loop through each day in the next 7 days including today in the URL e.g. visit:
https://www.website.com/request?day=2021-05-**10**T00:00:00.000-04:00&location_id=XXX&slot_type=XXX&key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

https://www.website.com/request?day=2021-05-**11**T00:00:00.000-04:00&location_id=XXX&slot_type=XXX&key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

https://www.website.com/request?day=2021-05-**12**T00:00:00.000-04:00&location_id=XXX&slot_type=XXX&key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

https://www.website.com/request?day=2021-05-**13**T00:00:00.000-04:00&location_id=XXX&slot_type=XXX&key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

https://www.website.com/request?day=2021-05-**14**T00:00:00.000-04:00&location_id=XXX&slot_type=XXX&key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

https://www.website.com/request?day=2021-05-**15**T00:00:00.000-04:00&location_id=XXX&slot_type=XXX&key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

https://www.website.com/request?day=2021-05-**16**T00:00:00.000-04:00&location_id=XXX&slot_type=XXX&key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

I then need it to read information from the page and store it as a variable. Right now I am doing this manually, but obviously, when tomorrow comes I’d like it to update the date so instead of 10-16 it checks 11-17. How can I come up with an elegant solution to take today’s date and input it in the URL parameter?

Thank you for your help and patience!

Here is how to get the date:

1 Like

Thanks Plankton. And how can I add the variable as part of a URL that will be used in an open command in the Target field?

Just add the variable to the URL. The rpa software will replace it with the content automatically:

https://www.website.com/request?day=**${your_variable}**-04:00&location_id=XXX&slot_type=XXX&key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

1 Like