Archi Forum

Archi => General Archi Discussion => Topic started by: Alberto on September 27, 2023, 22:03:57 PM

Title: HTML Report and SharePoint Online?
Post by: Alberto on September 27, 2023, 22:03:57 PM
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
Title: Re: HTML Report and SharePoint Online?
Post by: Phil Beauvoir on September 28, 2023, 10:47:26 AM
Hi, I found this thread (https://forum.archimatetool.com/index.php?topic=345.msg6764). Perhaps some ideas there?
Title: Re: HTML Report and SharePoint Online?
Post by: Alberto on September 28, 2023, 20:27:46 PM
Reached out to IT to see about "Enabling custom pages on Sharepoint site"... will update as soon as I find out.

Title: Re: HTML Report and SharePoint Online?
Post by: Alberto on October 02, 2023, 21:49:31 PM
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.