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 / Creating a PDF from a ...
Power Automate
Answered

Creating a PDF from a List and matching the List Name

(0) ShareShare
ReportReport
Posted on by 11

Hi All,

 

I created a Power Automate flow to generate a PDF file from a SharePoint List automatically.  

I am using the Encodian PDF converter.
Is there a way to match the PDF Filename with the List Name?

I have tried several expressions and functions in the PDF Filename to automatically read the List Name and apply it to the output filename, including concat, but without success..

Thanks!

screenshot.JPG
Categories:
I have the same question (0)
  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @Filippo0083 ,

     

    Try extracting list name from path:

    reverse(split(outputs('Get_items')?['body/value'][0]?['{Path}'],'/'))[1]
    vzhoqianmsft_0-1682393226174.png

     

     

     

    Best Regards,

    Habsburg Qian

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

  • Verified answer
    Filippo0083 Profile Picture
    11 on at

    Thanks for your reply.

     

    It worked! Thanks!

  • Filippo0083 Profile Picture
    11 on at

    I have one question though... The file name automatically adds a 1 at the end of the file name.
    Is there a way to avoid that and have only the List name?

     

    Thanks!

  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @Filippo0083 ,

     

    This didn't happen to me in my test. If that's the case, you can strip the last character in the resulting string to get a substring as the name.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard