Share via

SharePoint online Custom Script always disable

Anonymous
2017-10-07T01:10:25+00:00

environment: Office 365 E1 user

Team site in sub site of site collection

require a custom list to show attachment link in a list, most of these article require webpart custom JavaScript setup

It can' be find in my webpart setup, search article

( https://sharepoint.stackexchange.com/questions/146353/viewing-my-attachments )

it need:

Office 365-->Admin-->SharePoint-->Setup:

Item: Custom Script, I checked two choice:

Allow users to run custom script on personal sites                            

Allow users to run custom script on self-service created sites

It alert me it require 24 hours, but it didn't work after 24 hours...

and according the setup page link to:

For more information, see http://go.microsoft.com/fwlink/?LinkId=397546

install a sharepoint online PowerShell, login, run:

Set-SPOsite <mysitename> -DenyAddAndCustomizePages 0

I got this:

********************************************************************************************8

Set-SPOsite : The site https://myname.sharepoint.com/tracking is not properly formed.

At line:1 char:1

    + CategoryInfo          : NotSpecified: (:) [Set-SPOSite], ServerException

    + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.SetSite

In my E3 development site, it default can use custom Script,  any idea is appreciate!

Philip

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-10-07T01:16:27+00:00

OK, I got the answer.

Set-SPOsite <mysitename> -DenyAddAndCustomizePages 0

This command should run in root site collection, can't use a subsite like me site/tracking :)

Keep watch, the Lord is coming soon

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2017-10-07T08:48:09+00:00

    Hi Philip,

    Glad to know you have figured it out. If you have any questions when using Office 365 products, please don't hesitate to let us know.

    Have a nice day.

    Regards,

    William

    Was this answer helpful?

    0 comments No comments