I have a simple workflow that reads an item property date value, for (example Expiry Date), the worflow will start on creation or editing the item.
- a variable will have the value of 3 dayes before the expiry.(using Configure Action - Calculate Date)
- Puse until the variable value.
- send the notification
now the workflow will trigger the notification 3 days before the expiry date that was set on item creation time.
it happen sometimes we update the expiry date before the notification time, but still the email being sent according to the initial expiry date.
can the work flow consider the new updated expiry date value before sending the email and recalculate the required time to send the notification?
Many Thnaks
Hi,
if new expiry date is later than the original one, you could do a check after the pause if current date is equal to (current item expiry date -3) and if not, start a pause again (and put this in a kind of loop in order to do this until the condition isn't true..
if new expiry date is before the original one, I don't think there is something you can do, unless you manually end the workflow and restart..
a totally different approach could be to have a site workflow that checks everyday for items with expiry day = current date +3 and for each of them it sends an email..in this way you don't have any workflow waiting for a date that can change but the control is done every day..
@jackgelo wrote:Hi,
if new expiry date is later than the original one, you could do a check after the pause if current date is equal to (current item expiry date -3) and if not, start a pause again (and put this in a kind of loop in order to do this until the condition isn't true..
if new expiry date is before the original one, I don't think there is something you can do, unless you manually end the workflow and restart..
a totally different approach could be to have a site workflow that checks everyday for items with expiry day = current date +3 and for each of them it sends an email..in this way you don't have any workflow waiting for a date that can change but the control is done every day..
Thank you jackgelo,
in my case, the new date will be always greater than the original one, so i will go with 1st approach.
actually i like the idea for the site workflow, but never tried it before, hope you dont mind elaborate more about it.
many thanks
Dear jackgelo,
i tried to re-do the "pause until" again, but seems didnt work or i may missed somthing
i attached my original workflow, can you please advise where should i have to re-do the pause.
and if i redo the pause, still the variable will have its original expiry value or the updated oneNotification wf
i was trying to attach the nwf file itself, but i'm always getting the error message saying "The contents of the attachment doesn't match its file type"