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 / combin string with dyn...
Power Automate
Answered

combin string with dynamic content to save a file

(1) ShareShare
ReportReport
Posted on by 6

Hello

Help Please  🙂

i'm saving an attachment from email an giving the file name from the email subject (I used "slice").

slice(triggerOutputs()?['body/subject'],12,22)
 PM1974_1-1661427981689.png

 

It work but I need to add and pdf extention to the file name (".pdf").
 
How can i combin this:
slice(triggerOutputs()?['body/subject'],12,22)
With:
*.pdf

 

Thanks a head

 

Categories:
  • David- Profile Picture
    1,254 on at

    I am pretty sure that if you update your expression to the following, it will give you what you are looking for:

     

    concat(slice(triggerOutputs()?['body/subject'],12,22),'.pdf')

     

     

  • Verified answer
    Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @PM1974  You can simply type .pdf after expression.

    Hardesh15_0-1661435497474.png

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • PM1974 Profile Picture
    6 on at

    Thanks, so easy 😀

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard