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
Below sample script for your reference:
connect-pnponline https://tenant.sharepoint.com/sites/michael
$list=get-pnplist "TestList"
$ctx = Get-PnPContext
$list.ValidationFormula="=LEN([Title])<6"
$list.ValidationMessage="Test message!"
$list.update()
$ctx.ExecuteQuery()
-
Thank you so much ! you saved lot of my time.G_S– G_S2020-06-09 18:50:02 +00:00Commented Jun 9, 2020 at 18:50