Forum Discussion

Thomas Gielissen's avatar
Thomas Gielissen
Copper Contributor
Jan 23, 2017

Change Document Set Welcome Page Default View

Hi,

 

Does anyone know how to change the "Default Welcome Page View" setting from CSOM / C# code? (see attachment)

I found some things can be changed via the DocumentSetTemplate class, but the Default View setting/property I need seems to be missing here?!

 

Are there any alternatives?

 

 

 

 

7 Replies

  • Hi Thomas,

    DocSets' API is limited in CSOM. It's not possible to change most of the settings.
    Last time, when I faced DocSets provisioning I ended up with a hack to send emulation of user clicks on a settings form to achieve code based provisioning of DocSet settings.

    • Thomas Gielissen's avatar
      Thomas Gielissen
      Copper Contributor

      **bleep**..., I kinda expected this answer already, never the less i'm still disappointed :(

      The "emulation of user clicks" hack looks really dirty, but then again I don't see another way.

       

      Do you still happen to have the code?

       

      • Deleted's avatar
        Deleted

        yes i know it is hard but made a blog for it:

        https://docs.com/paul-keijzers/4594/unable-to-change-view-of-list-view-web-part-csom

        https://docs.com/paul-keijzers/5882/change-documentsetpage-using-csom-office365

         

Resources