cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pricey79
Helper IV
Helper IV

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
mdevaney
Super User
Super User

@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."

@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 

@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

 

@mdevaney 

 

pricey79_0-1599829025714.png

 

@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."

@mdevaney 

I have yes, the button is in the gallery 

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

@mdevaney 

 

pricey79_0-1599829859426.png

 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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