SharePoint Designer 2013 Loop

cindy jones 21 Reputation points
2022-05-12T21:53:01.99+00:00

I created a SharePoint Designer workflow that will send an email 30, 60, 90 days when an item is due. I'm having trouble creating a loop, and the one that is in my workflow isn't working. The email part works without any issues.

Can anyone assist?201613-loop.jpeg

Microsoft 365 and Office | SharePoint | Development
{count} votes

Answer accepted by question author
  1. Yi Lu_MSFT 17,626 Reputation points
    2022-05-27T02:47:12.833+00:00

    Hi @cindy jones
    As your actual need is to send emails 30, 60, 90 days before the end date, here I provide another workflow for you to refer to:

    206066-image.png

    First, we need three variables:

    206054-image.png

    Then I set value for these three variables and set the condition (if Today equals variables), send email.

    Last we need to pay attention, I add pause action and transition to stage1 is to let this workflow run every day, so that we could check if today equals to "30days before, 60days before and 90 days before" day by day.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Yi Lu_MSFT 17,626 Reputation points
    2022-05-19T12:27:28.783+00:00

    Hi @cindy jones
    Sorry for the delay, as in your screenshot there are two variables: "Current item:End deta" and "Reminder Date", the action "add date and time" actually will not change the value in "End Date" column, it will only change the value in variable "Reminder Date".

    For example, you could refer to this workflow:

    203695-image.png

    If I set the value in "Planned End Date" as 2022/5/19 12:00AM, then I will receive two emails, which tell you the loop runs twice:

    203719-image.png

    According to this, then you could add pause action during the loop as your need.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.