cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Dual Super User
Dual Super User

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

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User
Dual Super User

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

View solution in original post

Highlighted
Community Support
Community Support

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (3,380)