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 / Getting Office scripts...
Power Automate
Unanswered

Getting Office scripts dynamically

(0) ShareShare
ReportReport
Posted on by 10

I would like to create a flow to copy column data from an uploaded file to another file on Sharepoint. I am trying to use Excel functions. Is it possible to  get Excel scripts dynamically(the content of the uploaded file needs to be inferred by the PA flow)? 

Categories:
  • Yutao Huang Profile Picture
    Microsoft Employee on at

    @tros - I'm wondering if you can take a look at this post and see if the approach mentioned there would help in you case.

     

    Solved: Read excel attachment with office scripts - Power Platform Community (microsoft.com)

     

    The basic idea is to reference the workbook by its file ID (which normally can be inferred from preceding flow actions).

     

    Please let me know what you think!

  • tros Profile Picture
    10 on at

    Sorry I did not get which post you are referring to.  After putting the file ID into a variable I think think I would need an option such as 'get_office_Scripts', if that exists at all. Since the scripts names are not known by the flow before the file is uploaded.

  • Yutao Huang Profile Picture
    Microsoft Employee on at

    Oops, sorry I forgot to include the link... Now updated my original post with the link.

     

    So the Office Scripts you have created are not "tied" to any particular workbooks. The scripts are stored on your OneDrive for Business. You can always pick the script you want to run from the "Script" dropdown of the "Run script" action, no matter which workbook you want it to run against.

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard