Forum Discussion

TylerBraddick's avatar
3 years ago

Viewing Articulate 360 Content in SharePoint Online

Enabling Custom Scripts in SharePoint Online

Custom scripts are now disabled in SharePoint Online for security reasons by default. As a result, Articulate content with the story.html file renamed to story.aspx in the published output that previously worked with SharePoint Online might not work anymore.

If you don't need to track learners' progress or results, check out these free or low-cost options for web hosting.

If you need to use SharePoint Online, your SharePoint admin may be able to resolve this issue by following the steps below. (Note that we don't provide support for either workaround.)

As of July 10, 2024, SharePoint users will find that they are required to reenable the Custom Scripts feature every 24 hours, reverting the Custom Scripts setting to its default and disabled state. Please see Microsoft’s article on Custom Script settings for more information.

Enabling Custom Script via the SharePoint Admin Center

If you don't need instant access, follow these steps.

  1. Go to the SharePoint admin center and sign in with your credentials.
  2. In the sidebar to the left of the page, click Settings. (If you're using the Modern admin center, click the classic settings page hyperlink at the bottom of the Settings page.)
  3. Scroll to the Custom Script section, then select the options to Allow users to run custom script on personal sites and Allow users to run custom script on self-service created sites.
  4. Click OK to save your changes. Note that this change may take up to 24 hours to appear.

Enabling Custom Script in SharePoint Online via PowerShell

For instant access, follow these steps.

Open Windows PowerShell with admin privileges, then run Install-Module -Name PnP.PowerShell

Run this command: Connect-PnPOnline -Url <url> -PnPManagementShell (replace <url> with your SharePoint URL, which will then generate a code for you to insert in your SharePoint admin center.)



  1. Run these commands in PowerShell: (replace the URL after -Url in the first command with the link to your static site collection, such as https://companyabc.sharepoint.com/sites/StaticSite).
    (If you need help creating a SharePoint site, refer to this article from Microsoft.)
    1. Connect-PnPOnline -Url https://yourorg.sharepoint.com/sites/StaticSite 
    2. $site = Get-PnPSite 
    3. Set-PnPSite -Identity $site.URL -NoScriptSite $false

Your SharePoint site is almost ready to host HTML files! We just need to prepare the Articulate published output for upload. Here's how.

  1. In SharePoint, choose where you will locate this project. You can create a new folder or use the Documents location created by default with all SharePoint sites.
  2. Rename all the files with a .html extension in your unzipped published output folder to .aspx (keep the same file name). To do this, right-click the file, choose Rename, and then replace .html with .aspx. (Most projects only need to rename the analytics-frame.html and story.html files.

Finally, upload the published output to your SharePoint site, then click story.aspx to launch your Articulate course. This change should take effect immediately.

  • @Jennifer can you explain the process you used? I don't have editing access to our Sharepoint page, but can pass it on to someone who does.

    Thanks

    • JenniferBrow080's avatar
      JenniferBrow080
      Community Member

      Sure. It's very simple. Just needs it's own library, and the link so people can launch it.

      Actions for Storyline Author

      1. Publish to Web
      2. Change Story.HTML to Story.ASPX in the output folder
      3. Deliver output folder to whomever can upload to SharePoint

      Actions for SharePoint side

      1. Create a document library just for the output
      2. Place the contents of the output into the new SharePoint Library
      3. Use Story.ASPX as the target file

      Jennifer Brown

      • DeeAnnFeil's avatar
        DeeAnnFeil
        Community Member

        I tried this process but when i try and rename the story.html file to story.ASPX it does not allow me to change it?

  • Simply publishing to Web, and changing Story.HTML to Story.ASPX worked for me on SharePoint.com. No custom scripts needed.

  • Tyler Braddick

    As a result, Articulate content with the story.html file renamed to story.aspx in the published output that previously worke

    Hi,

    In our settings, custom scripts is already actived. But, despite that we follow the procedure, when we open an aspx file it is downloaded instead of being opened. An idea why it's not working for us?