Default
scripting capabilities are disabled in SharePoint online, because of this we
can’t run scripts in the site & we don’t fine few web parts like, content
editor (CEWP) & script editor web part (SEWP) which is very essential in current
development trend.
4. Select Settings.
5. Under Custom Script choose following
- For personal sites, custom scripting is disabled by default.
- For self-service created sites, custom scripting is disabled
by default.
- For the Root Site Collection of the Tenant, custom scripting is disabled by default.
To enable or disable
scripting from the SharePoint admin center
- Sign in to Office 365 with your registered account.
- Go to the SharePoint admin center (https://portal.office.com/admin/default.aspx)
- Search for settings, the direct url
4. Select Settings.
5. Under Custom Script choose following
Select OK. It takes
about 24 hours for the change to take effect.
To enable scripting on a
particular site collection immediately, use the following PowerShell command
Run following command from SharePoint
Online Management Shell
Set-SPOsite <SiteURL>
-DenyAddAndCustomizePages 0
Make sure the scripting
setting in the admin portal matches what you set using PowerShell or the site
collection setting may be overridden
again in the next 24 hours
Awsome
ReplyDelete