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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / possible to run office...
Power Automate
Unanswered

possible to run office script on a copy of the original file?

(0) ShareShare
ReportReport
Posted on by 8

i'm working on a reporting project, where sharepoint data should get dumped in an excell sheet to provide high-level overview of spending.

currently, some of the functionality is done via an office script within a template excel file.

 

I'd like to make a copy of the excel template and run scripts on the new file, however, my flow compains the script can't be found.

I understand the scripts have unique IDs that doesn't get transferred over when a file is copied, but instead a new ID is generated for each script upon file copy.

 

this, however, breaks my flow.

 

any idea how to work around this, please?

Categories:
I have the same question (1)
  • jurajt Profile Picture
    8 on at

    bump, anyone?

  • petra_r Profile Picture
    Microsoft Employee on at

    You should be able to run the same script on the copy of the workbook. Office Scripts are stored in a user's OneDrive meaning you can run scripts on multiple workbooks that you have access to. When you copy a workbook, a separate copy of the script file is NOT created. When you say that your flow complains, what do you mean? Can you send a screenshot of the Flow/error? 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard