Skip to content

[BUG] Get-PnPPropertyBag stops returning changes #4793

@JaredRic-corp

Description

@JaredRic-corp

Reporting an Issue or Missing Feature

Get-PnPPropertyBag stops returning changes in the same PowerShell session after the first run unless you use Set-PnPPropertyBagValue in the same session to change it.

The HTTP request sent to SharePoint uses XML that wouldn't load anything:

Expected behavior

Running Get-PnPPropertyBag should get the latest information from the property bag for each run.

Actual behavior

Running Get-PnPPropertyBag only gets the latest information from the property bag for the first run.

Steps to reproduce behavior

  1. Get-PnPPropertyBag
  2. In a different PowerShell session, use Set-PnPPropertyBag to set the value.
  3. Get-PnPPropertyBag #note, the update isn't reflected.

What is the version of the Cmdlet module you are running?

2.12.0 and 2.99.165

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreproducedIssue reproduced after testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions