web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Send Email in OnSucces...
Power Apps
Answered

Send Email in OnSuccess of Form to Email Address in SharePoint List Column

(0) ShareShare
ReportReport
Posted on by 95

I have a PowerApp Form with a dropdown choice for 'Region.' There are about 11 possible outcomes for the Region. Depending on the selected region, I want to send an email to that specific region that is stored in a SharePoint list. 


So far, I have a collection: 

 

ClearCollect(
 colRegions,
 Filter(
 RegionEmails,
 Title = DataCardValue41.Selected.Value
 )
);

 

However, I'm not sure I'm doing this correctly. I have two columns in the SharePoint list. The first column, "Title" contains the Region Names that can be selected from the dropdown in the form. The second column is "RegionEmail" which contains the associated email address for the selected region.

 

RegionEmails.png

 

How do I set this up in my app so that if someone chooses "Corporate New York", it finds that region in the Title column of my SharePoint list and then sends an email to the correct email address in the "RegionEmail" column?

 

Thanks in advance for all your help on this! 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @cjwilson80 

    Are all the regions unique or do you have repeats in the list?

    Also, you mention you have a dropdown with the regions in it...what is the Items property formula for that dropdown?

  • cjwilson80 Profile Picture
    95 on at

    @RandyHayes 

     

    Yes, all of the regions are unique and have different email addresses associated with each. The Items property of the drop down for that particular dropdown on the field is:

    Choices([@'Corporate SKY Limit Form'].CreditOfficer)



  • Verified answer
    cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    You're on the right track. Just in your OnSuccess, for the to: field of the sendmail function would use 

    Lookup(RegionEmails,
     Title = DataCardValue41.Selected.Value).RegionEmail

     in the to: part of the function. You don't need the collection, just utilize a lookup right inline of the sendemail function and you should be good. 

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @cjwilson80 

    So since you have the dropdown in place.  I would suggest that you not do a double lookup as was suggested but instead use what you have already gathered in the app!

     

    Assuming then that CreditOfficer is a lookup to your RegionEmails list...

    Instead of having your Dropdown based on the Choices (which will only provide you a record with a value that you'll have to then re-lookup later), change the Items property to:

    RegionEmails

     

    Then you already have everything you need once!

     

    So then your final email would be based on the dropdown selection...

    Office365Outlook.SendEmailV2(
     DataCardValue41.Selected.Email,
     ...etc...
    )

     

    Of course, you will want to do the email send in your OnSuccess action of your form, but that should give you what you want without the extra data operation.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard