문제

Context: I have a list that we use as a sort of newsfeed. I have a workflow which, when an item is created on the newsfeed, copies the contents into a new list item on a secondary list.

What I am trying to do is this: Every Monday, take all of the contents of the secondary list, compile them into an email, and then clear the list. It essentially sends out a weekly compilation of the news.

Is there a way I can have it check if today is Monday, do actions? Thanks!

도움이 되었습니까?

해결책

The OOTB way to do this would be to create your workflow as you want it and add a stage at the end. In this stage put in a Pause action. You can set this for 7 day (or 168 hours). For your Transition to stage, have it redirect back up to the first stage.

The downside of this would be that you have to manually start it that first time on Monday. It would also be one continuous workflow rather than it being ran separately once a week.

다른 팁

I wouldn't do this with workflow, I would do this in a PowerShell script that runs on the server, set it up in a Task Scheduler, and let it run every Monday. The script would kick off the workflow that you want, or alternatively use the PowerShell script to compile and send the email instead of the workflow.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top