Can someone help me how can i set the Formula and User message on the Validation settings of a Sharepoint Online List using PnP powershell?

1 Answer 1


Below sample script for your reference:

connect-pnponline https://tenant.sharepoint.com/sites/michael

$list=get-pnplist "TestList"

$ctx = Get-PnPContext

$list.ValidationMessage="Test message!"

  • Thank you so much ! you saved lot of my time.
    – G_S
    Jun 9, 2020 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.