Wednesday, December 10, 2014

SharePoint Publishing Workflow - The workflow could not set content approval status. Enable content moderation for this list and run the workflow again.

This is regarding SharePoint Out Of Box Publishing Approval Workflow issue in SharePoint 2010.

1. Add  an Out of Box Publishing Approval workflow to a SharePoint document library (e.g Pages)
2. Create a Page and Publish the page.
3. The workflow assigns task to Content Approver to Approve/Reject the changes
4. When the Content Approver approves/rejects the page, the status is updated as Approved/Rejected.
5. But when we navigate to the page, it still shows "Waiting for approval".

The issue occurs in April 2012 CU of SharePoint 2010 (version 14.0.6120.5000). 
To fix the issue, install the higher version of CU or register older version of dll of Microsoft.Office.Workflow.Actions.dll (14.0.6108.5000in GAC

Reference
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/e87c50e0-e7ed-41f0-bdb5-b16a3cf6828d/ootb-workflow-gives-error-when-user-rejects-in-the-document-in-publishing-a-major-version
Create Reminder mails on Task List


Below are Out of Box steps to send task due reminder mails in SharePoint. The below approach is applicable for both SharePoint 2010 and SharePoint 2013.

1. Create Task list

2. Create a workflow using SharePoint Designer to send emails to users. Include condition to send mails only for due tasks/overdue tasks

3. Uncheck all the checkboxes in Start Options for the workflow

4. Publish the workflow

5. In Task list navigate to List Settings

6. Click on Information management policy settings  - >Task


7. Click on Enable Retention



8. Click on Add a Retention stage



9. Enter settings for Time Period as Due Date + 0 days


10. In Actions, select Start a workflow and select the workflow created

11. If reminder mail is to be sent every day, then check the checkbox for Recurrance and enter 1 day


12. Navigate to Central Admin -> Monitoring



13. Click on Review Job Definitions

14. Click on Information Management Policy .

15. Configure it to run Daily. Default setting is to run every Friday at 11 pm

16. Click on Expiration Policy


17. Configure it to run Daily, couple of hours after Information Management Policy runs. Default setting is to run every Saturday at 11 pm

18. Now the reminder mails will be sent daily once the tasks are due till its completed

References