Change Document Set Welcome Page Default View

%3CLINGO-SUB%20id%3D%22lingo-sub-40775%22%20slang%3D%22en-US%22%3EChange%20Document%20Set%20Welcome%20Page%20Default%20View%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-40775%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20how%20to%20change%20the%20%22Default%20Welcome%20Page%20View%22%20setting%20from%20CSOM%20%2F%20C%23%20code%3F%20(see%20attachment)%3C%2FP%3E%3CP%3EI%20found%20some%20things%20can%20be%20changed%20via%20the%20DocumentSetTemplate%20class%2C%20but%20the%20Default%20View%20setting%2Fproperty%20I%20need%20seems%20to%20be%20missing%20here%3F!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20there%20any%20alternatives%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-178134%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20Document%20Set%20Welcome%20Page%20Default%20View%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-178134%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Paul%20!%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20also%20need%20to%20change%20the%20Document%20Set%20Welcome%20page%20with%20CSOM%20but%20I%20can't%20access%20your%20links.%20I'm%20always%20redirected%20to%20Office%20365%20Home%20page.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20it%20possible%20for%20you%20to%20send%20me%20an%20other%20link%20with%20your%20code%20or%20maybe%20a%20description%20with%20an%20exemple%20of%20what%20you%20did%20to%20change%20the%20Document%20set%20welcome%20page%20%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank's%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-41048%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20Document%20Set%20Welcome%20Page%20Default%20View%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-41048%22%20slang%3D%22en-US%22%3E%3CP%3EPerfect%20let%20me%20know%20i%20needed%20to%20remove%20the%20webparts%20as%20there%20was%20a%20bug%20which%20displayed%20all%20documentset%20double%20at%20the%20time.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-40840%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20Document%20Set%20Welcome%20Page%20Default%20View%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-40840%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Paul%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20going%20through%20your%20code%2C%20If%20I%20understand%20it%20correctly%20until%20now%2C%20what%20you%20are%20actually%20just%20doing%20is%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Modify%20the%20document%20set%20welcome%20page%20via%20the%20limited%20webpart%20manager%3C%2FP%3E%3CP%3E-%20Remove%2Fclose%20the%20default%20%22document%20set%20contents%22%20webpart%2C%20which%20will%20show%20only%20documents%20in%20the%20current%20document%20set.%20This%20is%20not%20an%20XSLTListViewWebPart%20zo%20in%20the%20webpart%20properties%2C%20the%20desired%20view%20can%20not%20be%20configured.%3C%2FP%3E%3CP%3E-%20Add%20an%20xslt%20list%20view%20webpart.%20Doing%20this%2C%20a%20new%20view%20is%20created%20in%20the%20list%20specifically%20for%20this%20webpart.%3CBR%20%2F%3E-%20Modify%20this%20%22webpart%20view%22%20that%20has%20been%20created%20in%20the%20list%20as%20desired.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENice%20workaround!%20I'm%20going%20to%20fit%20it%20to%20my%20needs%2C%20and%20I'll%20post%20an%20update%20later%20to%20confirm%20this%20solves%20my%20problem!%3C%2FP%3E%3CP%3EThanks%20for%20the%20feedback!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EThomas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-40808%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20Document%20Set%20Welcome%20Page%20Default%20View%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-40808%22%20slang%3D%22en-US%22%3E%3CP%3Eyes%20i%20know%20it%20is%20hard%20but%20made%20a%20blog%20for%20it%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.com%2Fpaul-keijzers%2F4594%2Funable-to-change-view-of-list-view-web-part-csom%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.com%2Fpaul-keijzers%2F4594%2Funable-to-change-view-of-list-view-web-part-csom%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.com%2Fpaul-keijzers%2F5882%2Fchange-documentsetpage-using-csom-office365%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.com%2Fpaul-keijzers%2F5882%2Fchange-documentsetpage-using-csom-office365%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-40806%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20Document%20Set%20Welcome%20Page%20Default%20View%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-40806%22%20slang%3D%22en-US%22%3E%3CP%3E**bleep**...%2C%20I%20kinda%20expected%20this%20answer%20already%2C%20never%20the%20less%20i'm%20still%20disappointed%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3EThe%20%22emulation%20of%20user%20clicks%22%20hack%20looks%20really%20dirty%2C%20but%20then%20again%20I%20don't%20see%20another%20way.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20still%20happen%20to%20have%20the%20code%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-40794%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20Document%20Set%20Welcome%20Page%20Default%20View%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-40794%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Thomas%2C%3CBR%20%2F%3E%3CBR%20%2F%3EDocSets'%20API%20is%20limited%20in%20CSOM.%20It's%20not%20possible%20to%20change%20most%20of%20the%20settings.%3CBR%20%2F%3ELast%20time%2C%20when%20I%20faced%20DocSets%20provisioning%20I%20ended%20up%20with%20a%20hack%20to%20send%20emulation%20of%20user%20clicks%20on%20a%20settings%20form%20to%20achieve%20code%20based%20provisioning%20of%20DocSet%20settings.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1117803%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20Document%20Set%20Welcome%20Page%20Default%20View%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117803%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20is%20only%20doable%20in%20sharepoint%20on%20premises%2C%20here%20is%20an%20explanation%20for%20%3CA%20title%3D%22programmatically%20setting%20up%20the%20document%20set%20default%20view%20on%20a%20list%22%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F274743%2Fprogramatically-define-document-set-default-view%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eprogrammatically%20setting%20up%20the%20document%20set%20default%20view%20on%20a%20list%3C%2FA%3E.%3C%2FP%3E%3CP%3E%3D%26gt%3B%20If%20you%20want%20a%20**workaround%20for%20sharepoint%20online**%2C%20please%20use%20this%20%3CA%20title%3D%22powershell%20docset%20welcomepage%20view%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fholylander%2Fmanage-sharepoint-pnp-powershell%2Fblob%2Fmaster%2Fsrc%2Flists%2Fchange_docset_welcomepageview-IE_scrapper.psm1%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Epowershell%20docset%20welcomepage%20view%3C%2FA%3E%20setter%20and%20%3CA%20title%3D%22follow%20this%20example%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fholylander%2Fmanage-sharepoint-pnp-powershell%2Fblob%2Fmaster%2Fexamples%2Fchange_docset_welcomepageview_in_list.ps1%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Efollow%20this%20example%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

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
Highlighted

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.

Highlighted

**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?

 

Highlighted

Hi Paul,

 

I'm going through your code, If I understand it correctly until now, what you are actually just doing is

 

- Modify the document set welcome page via the limited webpart manager

- Remove/close the default "document set contents" webpart, which will show only documents in the current document set. This is not an XSLTListViewWebPart zo in the webpart properties, the desired view can not be configured.

- Add an xslt list view webpart. Doing this, a new view is created in the list specifically for this webpart.
- Modify this "webpart view" that has been created in the list as desired.

 

Nice workaround! I'm going to fit it to my needs, and I'll post an update later to confirm this solves my problem!

Thanks for the feedback!

 

Regards,

Thomas

Highlighted

Perfect let me know i needed to remove the webparts as there was a bug which displayed all documentset double at the time.

Highlighted

Hi Paul ! 

 

I also need to change the Document Set Welcome page with CSOM but I can't access your links. I'm always redirected to Office 365 Home page. 

 

Is it possible for you to send me an other link with your code or maybe a description with an exemple of what you did to change the Document set welcome page ? 

 

Thank's

Highlighted

That is only doable in sharepoint on premises, here is an explanation for programmatically setting up the document set default view on a list.

=> If you want a **workaround for sharepoint online**, please use this powershell docset welcomepage view setter and follow this example