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:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 495

#3
Vish WR Profile Picture

Vish WR 429

Last 30 days Overall leaderboard