-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CustomScriptSafeDomains.Create returns "Cannot convert the "Microsoft.SharePoint.Client.ScriptSafeDomainEntityData" #1694
Comments
Seems to work fine at my end, can you please try with the latest 1.10 version as well and check ? You also need to execute |
I'm receiving the same error today with the same syntax @djsladi has, though it worked fine yesterday. |
I have a work around that appears to be working consistently at this time:
|
This one did the trick, thank you very much! :-) |
hi @djsladi , @katjones23 - we have added a new |
Reporting an Issue or Missing Feature
Error when trying to set HTML field security using latest PnP & SharePoint Online Management Shell
Expected behavior
Domain should be added to HTML field list
Actual behavior
Steps to reproduce behavior
$Domain = [Microsoft.SharePoint.Client.ScriptSafeDomainEntityData]::new()
$Domain.DomainName = "test.com"
Connect-PnPOnline -Url $siteColl -Interactive
$site = Get-PnPSite -Includes CustomScriptSafeDomains
$site.CustomScriptSafeDomains.Create($Domain)
What is the version of the Cmdlet module you are running?
1.9.0
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: