cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Send email from powerapps

Hello

I'm trying to send an email using Thisitem.contact from a gallery and get the following error message, can anyone help please?

 

pricey79_0-1599826913852.png

 

I can see its my name that has the error, but I dont want to have to put in individual email addresses , as the users could be over a thousand people. The contact field in the gallery is based on the user who was logged in at the time. The new user can then just hit a button an email the contact.

Hope that makes sense!

Thank you

8 REPLIES 8
Highlighted
Super User III
Super User III

@pricey79 

First, try using SendMailV2.  What you are using is out of date.

  

Secondly, if that doesn't work the problem will likely be ThisItem.Contact.  Does this refer to a text or a person object?  If its a person object you need to use ThisItem.Contact.Email.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted

@mdevaney thank you for taking the time to reply. 

 

I've changed it to SendMailV2 but same issue 

 

I think the contact is a text, sorry i'm a novice 

Highlighted

@pricey79 

Please type this code into a label (inside the gallery row) and show me the result.  I want to verify its a valid email.

ThisItem.Contact

 

Highlighted

@mdevaney 

 

pricey79_0-1599829025714.png

 

Highlighted

@pricey79 

Any code with the keyword 'ThisItem' must be placed inside of a gallery or form.  Have you done this?

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted

@mdevaney 

I have yes, the button is in the gallery 

Highlighted

@pricey79 

Please select the label and then take screenshot of the entire screen.  Something is going wrong here and I need to see what's happeneing.

Highlighted

@mdevaney 

 

pricey79_0-1599829859426.png

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (2,158)