5

enter image description here

This the current workflow I've made for my sharepoint. How do I edit the workflow such that I can email the Manager at 8am everyday? Do I have to add a loop somewhere, or a condition?

4

There is way of doing it but it will pause your workflow for 24 hours everyday.

In my workflow, I have taken three stages.

  1. We check the condition for entering into the workflow and pause for the next day and send the email at 8 AM and pass it to stage 2.
  2. We pause the workflow for next 24 hours and pass it to stage 3.
  3. We send the mail and pass the state to stage 2.

Here is what I have created. enter image description here I hope it helps.

  • Hi, thanks for your answer! May I know where I can find the "Go to next step" action? I can't find it under "Actions" (using sharepoint 2013 by the way). I tried googling, but can't find any good tutorials to understand how to make that. – Denise Dec 29 '17 at 9:42
  • 1
    If you are seeing Transition to stage. Click on the line and then you will find go to in action. – Vainktesh Kumar Dec 29 '17 at 9:54
  • My sharepoint doesn't have the "transition to stage" feature. Are there any alternatives you may know of to move to the next stage? – Denise Jan 2 '18 at 3:11
  • Are you using SharePoint Workflow 2013 or Workflow 2010? – Vainktesh Kumar Jan 2 '18 at 3:53
  • Hi I'm using workflow 2010. – Denise Jan 2 '18 at 3:55
3

if you are using On Premise version of SharePoint, Please follow the below steps

  1. Create a powershell script file to run the workflow against all items. please find the sample below
  $web = Get-SPWeb -Identity "https://yoursite/sitetest"
  $manager = $web.Site.WorkFlowManager
  $list = $web.Lists["List Name"]
  $assoc = 
  $list.WorkflowAssociations.GetAssociationByName("WorkflowName","en-US")
  $data = $assoc.AssociationData 
  $items = $list.Items 
  foreach($item in $items)  
  {  
  $wf = $manager.StartWorkFlow($item,$assoc,$data,$true)  
  }
  $manager.Dispose()
  $web.Dispose()
  1. Create a task in task schedular that runs everyday at 8 AM.
  2. Create a new action to start a program.
  3. In Program/script,please enter powershell.exe -file "path of
    powershell script created in step 1"

if you are using Online version of SharePoint, Please follow the below steps

  1. Create a console application in c# to start a workflow against all items. please find the sample below

How to programmatically restart a workflow

  1. Create a task in task schedular that runs everyday at 8 AM.
  2. Create a new action to start a program.
  3. In Program/script,please enter the path of exe file generated from console application.

Hope this helps. Thank You.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.