Good day Community,
We have a unique scenario with a clients workflows and thought it might be a good idea to plug into the community to see if anyone has solved this before or has a starter point for the script that we may require. I'd hope we aren't the first to run into this.
There are two parts to this scenario. Firstly the server has a set time for Daily Digest emails of 9:00 AM. This also impacts any notification rules, built in the Desktop Client, one that use a Date value within the Define Filter, withholding them until 9:00 AM. This is perfect, sending these out during the clients business hours.
We have also been building various workflows for this client and have noticed that on one workflow which utilizes the DayFrom() function, with a Date Property. That the workflows built in notifications, the ones on certain Events are triggering between 12:00 AM and 01:15 AM. This makes sense as the server clocks kicks over to the next day, and the property matches the Define Filter conditions of the trigger, the one set before the workflow State containing the notification settings. Unlike the Notification Rules, these do not appear to be governed by the Digest message time setting in the Admin Console thus they are sent out immediately once matching.
Could a script in the State Transition trigger resolve this?
Or should we script a Precondition on the State with the notification Action?
One concern we have is that if its a Precondition, would it sit on the server until the specified time frame, or would it be prompting the server constantly to complete that action? Wouldn't want to bog the server down unnecessarily.
Please let me know if you have any suggestions or thoughts regarding this scenario.
Thanks