web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Change location of sav...
Power Automate
Unanswered

Change location of saved Script --> to online SharePoint folder

(0) ShareShare
ReportReport
Posted on by

All,

 

How do I change the file location of a Script file? - I want to automate a script flow, out of hours. i.e. 12am everyday

 

I don't want to save the script file in its default location (This PC --> Documents --> Office Scripts)  instead I want it on Sharepoint, where the online Excel file lives

 

Reason for this is my laptop is switched off after 5pm and i want the script to run at 12am midnight.  Therefore I think the script wont work as my laptop is off

 

Then I want to be able to call it from a time scheduled cloud flow

Categories:
  • Yutao Huang Profile Picture
    Microsoft Employee on at

    Hello @hdhillon ,

     

    Thanks for trying out Office Scripts + Power Automate!

     

    All your Office Scripts file are already saved in the cloud in your OneDrive for Business. So it should still work even when your laptop is switched off.

     

    If you are seeing the script files in your local file folder, I'm guessing that's probably because the OneDrive client has synced them from the cloud to your local machine. But the actual script file should still be in the cloud.

     

    As long as you can choose your script from the "Script" list of the "Run script" action and schedule it to run in Power Automate, you should be good to go!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard