cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

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

View solution in original post

2 REPLIES 2
RezaDorrani
Dual Super User II
Dual Super User II

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

View solution in original post

v-yutliu-msft
Community Support
Community Support

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

 

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,980)