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 / Print all excel files ...
Power Automate
Answered

Print all excel files in a folder

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone,

 

How can I print all excel files in a folder? Action "Print document" requires exactly link to an excel file

 

Thanks for your support.

I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Anonymous 

     

    Could you use cmd prompt?  If you run dir /b *.xlsx from your folder you can get the file names.  Drop the first few rows and then iterate through the next lot to print off your files?

     

    DamoBird365_0-1614934694257.png

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @DamoBird365  Thanks for your help. I have run with CMD and could get the all xlsx files in my folder. but what should I do for the next steps with print action from 5th line in the picture? I'm a newbie. ^^

    ChienTrinh_0-1615129764922.png

     

  • Verified answer
    abdndamo Profile Picture
    34 on at

    Hi @Anonymous 

     

    I am replying on behalf of myself @DamoBird365 as I am currently locked out.

     

    I have probably just made it a bit more complicated for you - sorry.  I have just realised that you can use the get files in folder step and then a for each item in the list.

     

    abdndamo_0-1615147765989.png

    Hopefully this helps and the real me can return tomorrow 🙂

     

    Cheers

     

    Damien

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That's great, 

    Thank you so much!!!

  • NercyCrab Profile Picture
    10 on at

    Let's say we are printing the files via the above loop, this time to PDF printer.  2 issues appear:

    1. we have to manually enter the filename for each output file

    2. multiple windows will open up at the same time 

     

    How can we automatically assign the filenames for the output files?

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    @NercyCrab for pdf I am assuming that an adobe confirmation box loads up?  You woud need to grab the UI elements for the app windows and insert a wait until element is visible and then select the button to print.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard