I have many documents which need to be published to a major version than approved. Is there a way I can batch select multiple documents and approve simultaneously?
Yeah, its easier than you might think. From the Approve/Reject view the ability to check items is removed. However, from the all items view (or custom views to help you filter) simply check the items you want to approve, then in the Items ribbon, on the far right you'll find Approve/Reject (icon is a doc page with a check and an x on it). Clicking that with multiple items selected will apply the approval status to all selected items. The same applies for Document Libraries, except the Items ribbon is the Files ribbon.
I have implemented batch task approve/reject button with visual studio farm solution, hope this might help someone (content approval status can be changed by workflow, though not necessarily)
Check my code here: https://github.com/wintlu/DeltaCustom/tree/master/FarmSolution
Create VS farm solution, add element and type this into Element.xml:
Add an aspx page, add some buttons(approve, reject etc), then in the approve action:
Hashtable ht = new Hashtable(); ht["Status"] = "Completed"; ht["PercentComplete"] = 1.0f; ht["TaskStatus"] = approve ? "Approved" : "Rejected"; // some people say this works: "#" : "@"; ht["ows_FieldName_Comments"] = ReviewComment.Text; var succeed = SPWorkflowTask.AlterTask(i, ht, true);
http://.../_layouts/sitemanager.aspx to access the Site Manager, select the files of interest and use "Actions" item in top nav bar.
(In Sharepoint Server 2013. I don't know if it's the same for other versions).
Found by way of Famous SharePoint URLs & Locations on MS Developer Blogs.
I keep running into this and forgetting how I did it. Just remembered-Hopefully this helps someone (possibly even future me for when I forget and search again).
I just added a field to the list called "Batch Approve Trigger" (or whatever you'd like) and gave it an initial value of "1". Created my workflow to update approval status from draft-->pending-->approved. Set the work flow to run any time an item is changed. Changed all "Batch Approve Triggers" to "2" (drag select paste in list datasheet view). Viola - the workflow runs on all changed items and sets status to approved.