Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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!

  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at
    Re: Creating a PDF from a List and matching the List Name

    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.

  • Filippo0083 Profile Picture
    11 on at
    Re: Creating a PDF from a List and matching the List Name

    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!

  • Verified answer
    Filippo0083 Profile Picture
    11 on at
    Re: Creating a PDF from a List and matching the List Name

    Thanks for your reply.

     

    It worked! Thanks!

  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at
    Re: Creating a PDF from a List and matching the List Name

    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.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492