Skip to Content
0

Agentry File Download Weekly Rule

May 09, 2017 at 09:18 PM

33

avatar image

I have an agentry step to download a file into my Agentry iPad application. I set the DownloadDateTime when the file is first downloaded to the server time and want to create a rule to only download the file once a week.

Here is my first attempt at that rule which does not seem to completely work. I can not figure out exactly when/why it does download but it is not every time but it is certainly more frequent then once a week.

Is something wrong with my math?

image001.png (30.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bill Froelich
May 10, 2017 at 04:58 PM
0

I think your logic is off for the date comparison. Your date comparison will always return true. I think you want to add 1 week to the last download date and compare that to the current date and time. So if the last download date + 1 week is less than now then download the file.

Also, I am not sure you can do basic math like that in a SUM. I could be wrong but I think you need to put in the multiplied out value.

--Bill

Share
10 |10000 characters needed characters left characters exceeded