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 / Email based on text bo...
Power Apps
Unanswered

Email based on text box but results from search

(0) ShareShare
ReportReport
Posted on by 121

Hi everyone.

 

I am new to Power Apps and slowly getting my head around power automate and Power Apps.

 

I am trying to email a set contact using a button and the results of a hypothetical search.

 

I have a button on the home screen (1) and a text box containing an email address on another (2) and want to collect data from a search in a separate screen (3) based on a set criteria. When you click the button it will email the recipient from screen (2).

 

There are 3 different buttons each with a different email and different search criteria.

 

Does this make sense as i feel i may have complicated this question.


Many Thanks in advance

Categories:
  • stuermer Profile Picture
    64 on at

    So let me try to summarise to see if I got your idea 🙂 On your home screen you have a "Send Email" Button which should send an Email to the recipient from a Text Input on your second screen with the content of you search results from the third screen, correct? Can you explain a bit more what data should be send / what your search is doing? Are we talking about a Gallery in PowerApps?

  • Markswan20 Profile Picture
    121 on at

    Thanks for the reply, your summary is spot on.

    I have a power flow setup which uses the attached image. I have a button that sends this data to me when i search for specific data but i need it to do it without manually searching. It's the standard gallery yes.

     

    Cheers

    flow.png
  • stuermer Profile Picture
    64 on at

    For the automation to whom to send the email you can go into the Send an email (V2) Action and choose for the "To"-Field -> "Ask in PowerApps".... in PowerApps you'll then point the Flow to the content of your Textbox.Text value or you could use a variable Set(varName, Textbox.Text) and use that in the Run Flow PowerFX formula. Is this what you're looking for?

  • Markswan20 Profile Picture
    121 on at

    Potentially, where would that go in the flow? Would i be able to setup the 3 individual buttons within 1 flow or would they require individual flows?

  • stuermer Profile Picture
    64 on at

    Will all three buttons do the same? If not can you may shortly explain the difference between each button functionality? 

  • Markswan20 Profile Picture
    121 on at

    Each button will do exactly the same the only variant will be 

    Button 1 email "Search result 1" to email1@me.com

    Button 2 email "Search result 2" to email2@me.com

    Button 3 email "Search result 3" to email3@me.com

     

     

  • stuermer Profile Picture
    64 on at

    I think I would do all of these via one flow. PowerApps will deliver the inputs for the flow. So for example for the OnSelect of each Button it will trigger your Flow ( YourFlowName.Run( ....). ) and you will pass the mail recipient as well as the search criteria to the flow. Within the flow you use the Mail Recipient in the Outlook Action and the Search / Filter criteria in the "Get Items" Action.

  • Markswan20 Profile Picture
    121 on at

    Thanks for the reply and glad it's possible, i'm looking at Power Automate and have tried to figure out what i need to incorporate the requirement but have no idea where to start. Is there any advice on how this needs to be built within the Flow?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard