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
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
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

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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,599)