HTML Report and SharePoint Online?

Started by Alberto, September 27, 2023, 22:03:57 PM

Previous topic - Next topic

Alberto

Has anyone figured out how to publish a functional HTML report on SharePoint online?

If not, is there a way to point to a specific view with the jArchi Single Page HTML Report?

Thanks

Phil Beauvoir

If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Alberto

Reached out to IT to see about "Enabling custom pages on Sharepoint site"... will update as soon as I find out.


Alberto

That did it.

Per Microsoft's security recommendation and default is to not allow custom script in SharePoint sites (see https://learn.microsoft.com/en-us/sharepoint/security-considerations-of-allowing-custom-script).  To be able to host static HTML content with JavaScript, CSS, BootStrap on a SharePoint Online, you need to disable disable the DenyAddAndCustomizePages setting (set to zero).  You have to be a Global Tenant Admin (or at least a tenant-wide SharePoint admin), to run the PowerShell and execute the command to disable the DenyAddAndCustomizePages setting. You can do this on a site by site basis.

Here's an example using the SharePoint Management Shell
PS C:\windows\system32> Set-SPOSite https://domain.sharepoint.com/sites/sitename -DenyAddAndCustomizePages 0

You will also have to rename all .HTML files and references to .ASPX for it to work.  I'm submitting this as a request via GitHub.

Note: If you have a HTML file converted to ASPX before executing the command, it may not work. To make it work delete the ASPX files and upload it again to the document library.