You can indeed store Office Script (.osts files) in an on-premise SharePoint folder. However, there are a few essential considerations to bear in mind to ensure a seamless experience. It's important to note that scripts with external calls cannot be executed directly from SharePoint due to current limitations – you may encounter an error regarding network access calls. Power Automate does offer support for running scripts stored on SharePoint, specifically through the "Run script from SharePoint library (Preview)" action.
To securely store your Office Script (.osts files) in an on-premise SharePoint folder, follow these straightforward steps. Begin by opening the Office Script you intend to store in SharePoint. Select the "More options (…)" menu and opt for "Save as." In the ensuing file picker, designate the specific folder within your SharePoint site where you wish to store the script. Simply click "Save." Upon saving the script in SharePoint, you gain the capability to execute it using the "Run script from SharePoint library (Preview)" action within Power Automate.
As an interim measure, we suggest a practical workaround. Convert the Word document to PDF using a dedicated PDF conversion tool, such as Adobe Acrobat Reader or Microsoft Word. Following this conversion, print the PDF document directly, bypassing Word Online's PDF conversion process. This approach should ensure that the resultant PDF maintains the integrity of the original Word document. It provides a dependable solution while allowing for further investigation into the root cause of the Word Online issue. Should you require technical assistance, please let us know, and we'll be happy to provide guidance or code samples where applicable.
For optimal efficiency and organization, here are some additional tips for handling Office Script (.osts files) in SharePoint. It's advisable to establish a dedicated SharePoint library for storing your Office Scripts, streamlining management. Leverage SharePoint permissions to control access to these scripts. When creating a Power Automate workflow for running a script from SharePoint, ensure accurate selection of the SharePoint library and file path. Furthermore, consider using Power Automate to automate the process of saving and executing Office Scripts, offering potential for increased productivity.