Answered by:
Email Not Sending In Loop Condition

Question
-
I have a Designer 2013 WF logic displayed below:
The purpose is to send an email every time the condition is met.
The requirement:
To send a daily email reminder after Submitted Date + 14 days condition has been met. But for testing purposes I'm using 1 minute intervals.
It would have been very ideal to use a "Start a Task Process" and just set a Due Date but when I use it, the logic in "Transition to stage" never fires.
What I mean is, even when CurrentItem:RequestStatus equals ReadyforCPFImplementation, it NEVER goes to Assign New Designee stage. The same thing applies for the other logic.
Hence, the reason I'm using a Loop and another reason why I am using the "Wait for Event:When an item is changed" logic.
If I can use Start a Task Process can someone tell me how to arrange logic in "Transition to stage" to actually work?
If not, how can I make logic in Loop fire?
- Edited by heatguy1986 Tuesday, March 22, 2016 1:34 AM
Tuesday, March 22, 2016 1:31 AM
Answers
-
Hi heatguy1986,
According to your screenshot, the “Send an Email” action in the loop will be ran when the condition is meet. So you will get a lot of emails.
You need to add “Pause for Duration” action (pause for 1 day) after the “Send an Email” action.
Best regards,
Linda Zhang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Proposed as answer by Victoria Xia Tuesday, March 29, 2016 11:50 AM
- Marked as answer by Victoria Xia Tuesday, April 5, 2016 10:36 AM
Wednesday, March 23, 2016 12:08 PM
All replies
-
Hi ,
I think you have written wrong condition. Please check below screen shots. I have implemented same workflow logic as you written on my Environment and with minor change its started working for me.
-----------------------------------------------------------------------------------------------------------------------------------------
Thanks/ Siddheshwar Kohale
Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful. It'll help other users who are visiting your thread for the similar problem.
Tuesday, March 22, 2016 6:23 AM -
It works but the problem is I get bombarded with emails, which is what I expected.
The actual expectation is to just send emails on a daily basis instead of every minute as the logic you suggested does.
Below is the scenario:
- User enters data into a form (InfoPath) and clicks Submit
- The Administrator gets a notification email with a link to the form the user has submitted
- The Admin has a due date of Submitted Date + 2 weeks to complete the review of the form
- If Submitted Date + 2 weeks has passed then the Admin will get daily email reminders to complete the review
- The Admin will keep getting these daily email until the review has been completed
I hope that clarifies it more. Please advise on a better solution.
- Edited by heatguy1986 Tuesday, March 22, 2016 3:09 PM
Tuesday, March 22, 2016 3:08 PM -
Hi heatguy1986,
According to your screenshot, the “Send an Email” action in the loop will be ran when the condition is meet. So you will get a lot of emails.
You need to add “Pause for Duration” action (pause for 1 day) after the “Send an Email” action.
Best regards,
Linda Zhang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Proposed as answer by Victoria Xia Tuesday, March 29, 2016 11:50 AM
- Marked as answer by Victoria Xia Tuesday, April 5, 2016 10:36 AM
Wednesday, March 23, 2016 12:08 PM