Constantly Changing URL

Post variable and regex related tips, questions.

Postby Tech Support » Fri Oct 24, 2008 1:57 pm

Use the day of the year variable in a Variable math task:
Variable Name- DATE::dy
Function- +
value = 4750 (you will have to determine this)
Output variable = ReportRequestKeyValue

then in your web download task use:

https://website/home/test/ReportRequestKey=$%ReportRequestKeyValue%$&SiteKey=438

Run the variable math task just before the web task.

ofcourse, at the start of next year you would have to recalculate the addition factor.


The other option is to add a constant value to the task instance variable which will increase by 1 everytime it runs.
Tech Support
Site Admin
 
Posts: 1279
Joined: Thu May 25, 2006 11:12 am

Postby Tech Support » Mon Oct 27, 2008 2:30 pm

Pick the Number Variables task.

The value field has to be a number. You are going to add the current day of the year to a fixed number (4750 or something close)
Tech Support
Site Admin
 
Posts: 1279
Joined: Thu May 25, 2006 11:12 am


Return to Variables and Regular Expressions

Who is online

Users browsing this forum: No registered users and 1 guest

cron