Get-PnPWeb clears RegionalSettings values from a site when run from Visual Studio Code but not from Terminal. #3682
Unanswered
Dindin-Rules
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have sites with the regional settings set. (Office 365 Sharepoint Online)
If in a VSCode terminal, I run the command
$Web = Get-PnPWeb
I will get valid response from these commands showing them set as expected.
$Web.RegionalSettings.LocaleId | $Web.RegionalSettings.CalendarType | $Web.RegionalSettings.Time24
If on the other hand, I run that same command in VSCode using the PNP Addon run button it wipes out the settings in the site.
I can confirm this by going to terminal and trying the commands above again and now the site regionalsettings are set to null.
This does not affect other settings as I can confirm that $Web.QuickLaunchEnabled is still set so it seems specific to RegionalSettings.
Is this intended or a bug?
Beta Was this translation helpful? Give feedback.
All reactions