question

cindyjones-0251 avatar image
0 Votes"
cindyjones-0251 asked cindyjones-0251 commented

SharePoint Designer 2013 Loop

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



sharepoint-dev
loop.jpeg (169.1 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am currently looking into this issue and will give you an update as soon as possible.

Thank you for your understanding and support.

1 Vote 1 ·

Thanks!

0 Votes 0 ·

Any updates?

0 Votes 0 ·
YiLu-MSFT avatar image
0 Votes"
YiLu-MSFT answered cindyjones-0251 commented

Hi @cindyjones-0251
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.



image.png (23.6 KiB)
image.png (29.2 KiB)
· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks! For testing purposes the workflow can be modified for 1 day, 2 days and 3 days?

0 Votes 0 ·
YiLu-MSFT avatar image YiLu-MSFT cindyjones-0251 ·

Hi @cindyjones-0251
I would suggest you to use "-1, -2, -3" for test, the test effect could be better and then change it into "-30, -60, -90".

0 Votes 0 ·

Thanks! This worked on my test list. One last question, would the workflow work on the existing list that I have attached? Or would I need to make changes to the items that I have highlighted in order to start the workflow?

206827-stamp.jpg


0 Votes 0 ·
stamp.jpg (59.0 KiB)
Show more comments

Sothis means I could manually start the workflow on the items that are currently in the list?

0 Votes 0 ·
YiLu-MSFT avatar image YiLu-MSFT cindyjones-0251 ·

Yes, you could. If you choose to start it manually, you could start it when you click More options (...) > workflow. You could also ues "Start workflow if an item is changed", then after you change the value in the item, the workflow will start automatically.

0 Votes 0 ·
YiLu-MSFT avatar image
0 Votes"
YiLu-MSFT answered cindyjones-0251 commented

Hi @cindyjones-0251
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.



image.png (14.4 KiB)
image.png (27.4 KiB)
· 12
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In my example I need to send an email, 30, 60, and 90 days, will this workflow work for this purpose?

0 Votes 0 ·

I only have one variable which is the End Date, and I added the Reminder Date as a calculated column. Could this be a problem?

0 Votes 0 ·
YiLu-MSFT avatar image YiLu-MSFT cindyjones-0251 ·

Hi @cindyjones-0251
You could check how many variables you create in your workflow here, I think "Reminder Date" could be a variable:

204418-image.png


As I said before, to run your workflow normally, you need change the loop to "variable "Reminder Date" equals to variable "End Date".

What's more, to run a loop, we don't need to add step below it, just add action. So you need to delete the step1,2,3 and retain the actions in the steps.

At last, in my opinion if you want to create a SharePoint Designer workflow that will send an email 30, 60, 90 days when an item is due. How about creating a workflow without using a loop:

204459-image.png


0 Votes 0 ·
image.png (49.1 KiB)
image.png (16.1 KiB)

On the last workflow that is sending emails, can this be written on End Date and not a specific date?

0 Votes 0 ·
YiLu-MSFT avatar image YiLu-MSFT cindyjones-0251 ·

Hi @cindyjones-0251
Yes, you could change it into End Date column.

0 Votes 0 ·

Would this work? If End Date equals End Date. The End Date column has different dates.

0 Votes 0 ·
Show more comments