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 / Create an excel using ...
Power Automate
Answered

Create an excel using array

(0) ShareShare
ReportReport
Posted on by 59

Hi all, I am filtering an excel based on couple of conditions and storing them into an array. once it has finished filtering I now want to paste the data into an excel and send it to my email and later delete the filtered excel so next time the flow runs it does not have a filtered excel already in the location to append. How can I use my array to paste that into an excel or is there a better way to do this. Please advise.

 

Best Regards

Anived Array.JPG

Categories:
  • SanmeshG Profile Picture
    1,956 Moderator on at

    Hi @Anived  ,

     

    You can save a blank excel file or an excel file with the table headers in a SP Doc library (name it as Template File) and create a new file in a separate folder (Just to distinguishing it better) using the File content of this Template File.

     

    Now write your filtered data from flow into this new file using Office Scripts or using the Add a Row action of excel in Power Automate. And delete the old file.

     

    This is one approach.

     

    Another approach would be ,

     

    Create a new worksheet in the existing File itself and write the data in the new worksheet , and delete the old worksheet. (Here as well you can use Office script for better performance.)

     

    If this helps , please give this a thumbs up and mark this as a solution.

     

    Thanks,

    Sanmesh

  • Verified answer
    Anived Profile Picture
    59 on at

    Hi,I used convert to CSV property and was able to add it as attachment afterwards. Thank you for your answer!

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
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard