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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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