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 / refresh and save an ex...
Power Automate
Answered

refresh and save an excel spreadsheet on SharePoint online

(1) ShareShare
ReportReport
Posted on by 1,151
Hi All,
 
I have created the following flow to refresh a spreadsheet using Run Script but it isn't updating it, when I test it using the test option it work but the recurrence isn't saving it. What am I missing?
 
Categories:
I have the same question (0)
  • Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at
    "the recurrence isn't saving it. What am I missing?"

    Do you mean your recurrence isn't saving the settings you are configuring?
    What is your recurrence schedule? 


  • jbrines Profile Picture
    1,151 on at
     
    Sorry I meant that it seems to refresh the excel file but the refresh isn't updating and saving the excel file.
     
    It still shows the modified date was a few days ago.
  • Tomac Profile Picture
    4,140 Moderator on at
    @jbrines Do you see the successful runs listed in your flow details page?
     
     
    If you click on one of the timestamps that says Succeeded (not test succeeded) and expand the Run Script action, does it say in the Outputs that the script was successful?
  • Suggested answer
    jbrines Profile Picture
    1,151 on at
    Hi @Tomac
     
    Yes.
  • Verified answer
    Tomac Profile Picture
    4,140 Moderator on at
     
    Thanks for coming back so quickly with that. It looks like your flow is operating correctly, so the issue will be with the script. You can find the correct forum for Office Script questions here.
  • jbrines Profile Picture
    1,151 on at
    Hi @Tomac the thing is is that if I run the script with excel open it work, if I run the flow in test mode it works. It only doesn't work when it is scheduled to run.
  • Tomac Profile Picture
    4,140 Moderator on at
    @jbrines Does a user have this excel file open during the scheduled run time? If so, Power Automate won't be able to lock the file for editing and the script won't be able to make changes.
  • jbrines Profile Picture
    1,151 on at
    Hi @Tomac ,
     
    No one has open when I am currently testing it

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard