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

send email with dynamic content in the body

help. I need to make an app where I can submit order requests. I want it to send an email containing all of the information the user inputted. i have been trying different things but I'm stuck

 

 

powerapp4.JPGpowerapp3.JPGpowerapp2.JPGpowerapp.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
zmansuri
Super User
Super User

Office365Outlook.SendEmailV2("Email",

"Subject",

"Following is the incentive report for the Month of " & DropDown1.Selected.Value & "Thanks" );

 

 

Above code will shoot the email and take the value from dropdown1. What you do is write your text between "" and your PowerApps dynamic code between &

View solution in original post

17 REPLIES 17
zmansuri
Super User
Super User

Office365Outlook.SendEmailV2("Email",

"Subject",

"Following is the incentive report for the Month of " & DropDown1.Selected.Value & "Thanks" );

 

 

Above code will shoot the email and take the value from dropdown1. What you do is write your text between "" and your PowerApps dynamic code between &

Anonymous
Not applicable

powerapptrial.JPGi'm receiving an error. any tips?

Anonymous
Not applicable

a396076_0-1638903491633.png

 

v-xiaochen-msft
Community Support
Community Support

Hi @Anonymous ,

 

@zmansuri 's solution is perfect. 

Since the error information you provided is incomplete, I will provide a detailed demo below.

If your problem is solved, please consider mark  @zmansuri .

 

vxiaochenmsft_0-1638946843970.png

vxiaochenmsft_1-1638946861018.png

 

Office365Outlook.SendEmailV2("your test email","Test","Test2   "&Dropdown1.Selected.Value&"   Test33")

 

vxiaochenmsft_2-1638946907568.png

 

Best Regards,

Wearsky

 

 

 

You are missing an & after "Item:", which is causing these errors.

After you add that, you will see zmansuri's solution will work.

Anonymous
Not applicable

a396076_0-1638963074727.png

i appreciate your help but i am still receiving an error

shoog
Super User
Super User

@AnonymousCan you show a screenshot of the formula bar? That would give a better indication of where the error is.

Anonymous
Not applicable

I figured it out but is there anyway to format the email?

Anonymous
Not applicable

a396076_0-1638964135516.png

i would prefer it didnt look like this

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,885)