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 Apps / Send Office 365 email ...
Power Apps
Answered

Send Office 365 email attachment with dynamic Name

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to trigger a button on my form to send an email that contains a pen input as a jpg file.

I have managed to send the signature as a jpg file but only by setting a generic name to the attachment file.

 

I'm now trying to send the email but change the attachment file name to pickup text submitted in a text input.

 

Office365.SendEmail("david.gorgan@acoolcompany.com","My Consent Form", "Body Text", {Attachments:Table({Name:"Signature.jpg",ContentBytes : PenInput1.Image, '@odata.type':""})});

 

I'm trying to send the signature as Name_Input.Text but if I do that I lose the file conversion, and it won't be sent as JPG file.

 

Please can somebody advise on a way to do this 

 

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    check this video from Laura Rogers

    https://www.youtube.com/watch?v=51PvWSchido

     

    she sets dynamic name for pen input and send emails

     

    Regards,

    Reza Dorrani

     

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

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

    Hi @Anonymous ,

    Do you want to send an attachment with dynamic name?

    Try this formula:

    Office365.SendEmail("david.gorgan@acoolcompany.com","My Consent Form", "Body Text", 
    {Attachments:Table({Name:TextInput1.Text & ".jpg",ContentBytes : PenInput1.Image, '@odata.type':""})});

     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard