Page 1 of 1

Release files on the 1 and 15 of every month

Posted: Wed Feb 17, 2021 6:48 pm
by sundanceusa
Hi, we are trying to create a workflow that will release files on the 1st and 15th of every month, any tips on how to achieve this?

Note: We receive one file every day via FTP.

Re: Release files on the 1 and 15 of every month

Posted: Thu Feb 18, 2021 7:55 am
by laurentd
Hi, use a Hold job element with this release condition:

[Switch.Calculation:Expression="[Switch.Date:Format="d",TimeZone="System"]"] Equal to 1
OR
[Switch.Calculation:Expression="[Switch.Date:Format="d",TimeZone="System"]"] Equal to 15

Re: Release files on the 1 and 15 of every month

Posted: Thu Feb 02, 2023 5:16 pm
by eyakovetz
Thank you for this! I needed a solution to release files from two different queues, one each every 5 minutes, on the :00s and :05s. A regular Delay condition wasn't buffering the queues for 10 minutes' worth of files, it was just delaying the drop of one file at a time.

I set the release condition for the first folder to:
[Switch.Calculation:Expression="[Switch.Date:Format="mm",TimeZone="System"]%10"] Equal to 0
and the other to:
[Switch.Calculation:Expression="[Switch.Date:Format="mm",TimeZone="System"]%10"] Equal to 5
retrying every 1 minute. This is producing the desired result. \o/