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 / Create new Excel file ...
Power Automate
Unanswered

Create new Excel file with populated data

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I have created an automate that will populate an excel sheet after extracting data. But I would like to have a blank copy of this file as a template, and be able to move the data to a duplicated file that I can then upload to sharepoint.

 

Is there a way to do this and continue creating new blank documents instead of editing the same one over and over?

 

Thanks!

Categories:
I have the same question (0)
  • Unknown geen idee Profile Picture
    1,757 on at

    Dear S,

     

    Sure, I am doing something similar where I have a template which I made a copy of in the flow itself and then populate that copy with data to produce a business document with specific data. Since I am not working on the template file itself, this remains unaffected.

    Some tips in doing so:

    • When you create a new file in the flow and use this new file in the same flow ... build in some delay for the file to 'settle', otherwise your flow will not find it. 2-3 min should be fine.
    • If you are using a template this is easiest, because you will know already the table names and columns used in the file.
    • Suggest you create your whole flow first with all the steps ... and when ok, only then add the 'Create file' based on the template in front ... and then replace the file names (from the actions you made already) with the ID of the just created file.

    Happy flowing,

    Koen

  • Community Power Platform Member Profile Picture
    on at

    Thank you for the advice Koen!

    I've added the step to copy the file and added a delay, but I am unsure how to replace the original file with the new file in all my steps as the file technically hasn't been created yet at the time of building the flow.

    How were you able to fix this issue?

  • Unknown geen idee Profile Picture
    1,757 on at

    Dear S,

    The screenshot below should give you the right hints.

    • Create a copy of the original file (Get Contents).
    • Create a new file from the output of 'Get Contents'
    • Fill the new file with data, replacing the 'File' with the ID of the newly created file (or in my example a variable)
    • Please ensure you build in some delay between the creation of the file and using it (3 minutes or so).

    Happy flowing,

    Koen

     

     

     

    Koen5_0-1689340151034.png

     

  • Community Power Platform Member Profile Picture
    on at

    Thank you again so much for all your help. However, I am still receiving error messages when trying to implement this. I've attached screenshots of my flow. 

    Let me know if you see what is causing the issues? Thanks again!

  • Unknown geen idee Profile Picture
    1,757 on at

    Dear S,

    Your error indicates that the fields you want filled do not exists/cannot be found. 

    I am guessing this is because the 'File' label in your action requires a path ... not merely a filename. Change it to a path and see what happens.

     

    Happy flowing,

    Koen

  • Community Power Platform Member Profile Picture
    on at

    Thank you again Koen for all your help! 

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard