PnP-Provisioning-Schema icon indicating copy to clipboard operation
PnP-Provisioning-Schema copied to clipboard

add DisableCommenting as a flag on the list instance

Open kasperbolarsen opened this issue 1 year ago • 0 comments

as far as I can tell the provisioning engine does not yet support setting the DisableCommenting setting on a List Instance?

Currently I call an Azure Function as part of the provisioning and use this kind of code as a workaround, but it would be lovely if the engine could handle it for me :-)

    Connect-PnPOnline -Url $targetURL 
    $List = Get-PnPList $ListName
    $List.DisableCommenting = $true
    $List.Update()
    Invoke-PnPQuery

kasperbolarsen avatar Sep 14 '22 07:09 kasperbolarsen