Forum Discussion

TylerBraddick's avatar
4 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.

81 Replies

  • RozGyulai's avatar
    RozGyulai
    Community Member

    Renaming had worked for me until very recently, and it works with historical files. I just created a new file. When I upload to SP and try to link it, the link refers to "download" instead of "story" (company related information is deleted from the beginning of the link): _layouts/15/download.aspx?UniqueId=6d2f67f637f94a0da02fbdc5292ba888&e=Lz7zPL. What may cause this issue?

      • HayleyLawes's avatar
        HayleyLawes
        Community Member

        Hey

        So this is what my business IT infrastructure Engineer said to me...

        Microsoft themselves have disabled the custom script feature on a SharePoint as a standard feature. ( he confirmed this with Microsoft). It can however be enabled for a specific site (your IT admin can do this if not you) but it will auto turn off after 24 hours.

        Due to how long it take for my business to push through updates i get about 48 hours sometimes 72 before it resets. 

        Uploading the files itself they need to be converted to the ASPX file I  also find that in  the Story content folder and the Mobile folder once you have uploaded them to SharePoint you need to create the blank folders "notes" and "slides" in each as SharePoint wont upload these empty folders 

         

        Hope it helps

  • Hi,
    We're running into the same problem: we want to make a Rise course with integrated storyline blocks available for clients who do not have an LMS. So we published a version for web on our secured SharePoint Online site. The Rise module loads fine, but they cannot see the storyline block. Instead, a html file is downloaded but cannot be opened of course.
    So, my question is: if our admin enables this script, will it only be active for 24h? So basically, they would have to enable it every day until every client (we're talking about hunderds of people) have seen the course?

    • MateuszSzuter-e's avatar
      MateuszSzuter-e
      Community Member

      Custom Scripts are not working like this (It needs to be enabled during the upload of the course, not the whole time it is online). 
      Storyline block is shown as an iframe within Rise course, that might be the case. Did you enable the Customs Scripts during the initial upload and you still have the issue, or you didn't enable it at all and somehow Rise course is working and only the Storyline block is not?

  • VanessaRaby's avatar
    VanessaRaby
    Community Member

    Hi everyone, do we know if something changed in Articulate 360 settings that would affect this process. I used to do the exact same thing as explained here to share my web published files via SharePoint (replace .html by .aspx). Now, instead of launching the file, it downloads the story.aspx document. 

    • JoseTansengco's avatar
      JoseTansengco
      Staff

      Hello VanessaRaby,

      Thanks for reaching out!

      We didn't change anything that could have affected how Articulate content is displayed in SharePoint. Note that SharePoint is proprietary software offered in the Microsoft 365 suite. It is designed to host websites created within SharePoint. This means they can release updates in their environment to improve the experience for internally created websites, which could also have an inverse effect on content created from third-party software. 

      Please check with your SharePoint administrator to see if the behavior you described can be changed in SharePoint's environment.  

    • HayleyLawes's avatar
      HayleyLawes
      Community Member

      Custom scripts has been disabled as default by Microsoft. I now have to get me admin to activate it and it automatically turns off after 24 hours. Its a pain but its a Microsoft change so not much can be done about it.

  • After weeks of trying to get Sharepoint to link to/display courses from a link to files uploaded into SP, a colleague of mine suggested a brilliantly simple solution.  

    In Articulate, open your course. Click on 'Share' and copy preview url. Paste url into Sharepoint webpart where you want the course to open - Voila.  It allows me to update as needed and the link always refreshes with newest version. I can add a password if needed.

    • HayleyLawes's avatar
      HayleyLawes
      Community Member

      So does this mean essentially your not  housing the file at all on sharepoint, the files is still housed within yours/shared drive and its just the link on sharepoint?

      This could be so much easier then having to request my IT department to reinstate my custom scripts for 24hours each time 😑😀

      • NancyClaxton12's avatar
        NancyClaxton12
        Community Member

        That's exactly right Hayley. The permissions of SP were just so limiting. The link means I can refresh the content in Articulate and all changes are shown in SP. Wow, it's been a gamechanger.

  • HayleyLawes's avatar
    HayleyLawes
    Community Member

    I agree I just don't get on with RISE. I find it limited and cant get past the feeling of a clickable PDF but it works for others. I'm not housing courses on my Sharepoint, I have a dedicated LMS for that. This is just for games for people to play on different topics, testing skills etc. I am currently using the web published file, converting to ASPX and then uploading but i will try seeing if the web link works, it will come down to if the whole business can then access.

    Thanks for the insight though really helpful