0

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

1

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()
1
  • Thank you so much ! you saved lot of my time. Commented 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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.