thub.users.profile.tabs.comments.personalized


Hi @RaytheonXie-MSFT,

Thank you for your response. Yes i'm aware that modifying the custom view does not affect the document library, only the view. If I go to the view page itself the setting is correct, which is expected.

I'm just wondering how, and if you can change the web part 'selected view' using PnP PowerShell, or do you have to change it via by going to each web part and changing it manually?

It would be ideal if I can set it via PowerShell, but if it's not possible I understand, just unfortunate. I could not find anything in regards to doing this with PnP, outside of someone mentioning updating the <view></view> of the XmlDefinition of the Web Part properties. However when I look at the XmlDefinition of the Web Part property its view GUID set correctly.

Thank you

v/r
JShidell

Hi Sadomovalex thanks for your response.

What you mentioned I have done already. I'm grabbing the document library view web part Xml from the https://portal/SiteA/DocLib/Forms/View1.aspx page by using Get-PnPWebPart and then using PnP to add that web part to the Publishing Web Part Page. As I mentioned everything works great, expect that the 'Show All Items Without Folders' is not set on the Web Part when added to the Page. It is set correctly on the View. If I edit the Web Part on the Publishing Web Part Page, and manually select the View then the 'Show All Items Without Folders' is set corrctly. I'm trying to avoid having to edit every single web part on my page just to re:select its view for that setting to be set correctly.

Thanks for any assistance.

v/r
JShidell