Forum Discussion

Richard Hanson's avatar
Richard Hanson
Copper Contributor
Jul 10, 2018

Document set approval of default content & batch approval

Hello,

I'm currently working on moving some of our file system contents over to sharepoint.  We've got product folders that are being converted into document sets, the document set has a few default folders and a place holder text file to get over the empty folder creation error.  The issue I'm having is how do I make those default folders and sub files approved when the document set is created? 

 

Which also leads to the second problem as a number of the sets have already been created but everything is in draft and SPD and the Content areas do not let you view the contents of the document set to even batch approve inside each set.  It's exhausting to approve each file manually but I can't disable the approval inside the document set because there are multiple documents that have different approval paths when they're actually updated, but currently I'm just trying to upload the already approved versions.

 

Thank you in advance for any assistance.

  • Richard Hanson's avatar
    Richard Hanson
    Copper Contributor

     

    So I was able to find a way to loop through the entire library approving documents and folders using Call HTTP web service actions in a workflow /Approve for files and OData__ModerationStatus = 0 for folders and document sets. 

     

    I took the same logic and applied it to an on create workflow checked if the content type was a document set or derived document set by checking the Content Type ID against 0x0120D520 the problem I have now is that the document set fires and then all the default files fire separately.  Is there a way to check if all the document set's default file and folder structure has been created and delay the workflow until it's done? Or am I stuck just running it manually after creating the document set (which is still significantly less effort than manually approving all the default files and folders created)

     

    Thank you in advance for any assistance.

Resources