cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DavidGorgan
Level: Powered On

Send Office 365 email attachment with dynamic Name

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 

 

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Level 10

Re: Send Office 365 email attachment with dynamic Name

Hi @DavidGorgan 

 

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

2 REPLIES 2
RezaDorrani
Level 10

Re: Send Office 365 email attachment with dynamic Name

Hi @DavidGorgan 

 

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

Community Support Team
Community Support Team

Re: Send Office 365 email attachment with dynamic Name

Hi @DavidGorgan ,

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':""})});

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 164 members 4,671 guests
Please welcome our newest community members: