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 / powerapp v2 flow - alt...
Power Apps
Answered

powerapp v2 flow - alternative for Loop

(0) ShareShare
ReportReport
Posted on by 18

Hi,
this is my first task regarding Microsoft Power App and don't know how I should solve it. We have a flow that in the input is entered email address and as output we should get back an ID. Both the files are in Database and basically , only the entered email address should be searched and corresponding ID should be output. What we have here right now is a loop. But a loop could lead to problems if we have multiple data. The question is, what could i use instead of loop that leads to the same answer.

testttt.png
Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @namisrn ,

     

    This seems something you really don't need a flow for, but rather solve with a LookUp() or Filter() function in PowerApps:

     

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-filter-lookup

  • namisrn Profile Picture
    18 on at

    But can you please tell me, how should i do that? this video did not help me.
    This is another screenshot from that

    Screenshot 2022-10-06 151437.png
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @namisrn ,

     

    As I understand you have a Dataverse table 'Benutzer' and you want to search the 'internalemailaddress' for a certain email address value and then return the ID value(s) for the corresponding records. Is that correct?

     

    Something like the below will return a single column table that contains the ID values for all items that contain what is typed in TextInput1 in the internalemailaddress column of the Benutzer table:

     

    Search(Benutzer, TextInput1.Text, internalemailaddress).ID

     

  • namisrn Profile Picture
    18 on at

    That is Correct. Thank you. But where should i write that?

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @namisrn ,

     

    Probably instead of the code where you run the flow currently. However, I have no clue what your app does with this information so please explain in case you need more guidance.

  • namisrn Profile Picture
    18 on at

    I have inserted it there but it does not work.
    And the app is actually quite simple as you explained.
    There is a single input field where you have to enter an email address. Then when you click Run, you get back an ID corresponding to that email which is in database. That's it.

    scrsht.png
    scnsht2.png
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @namisrn ,

     

    Can you please share a full screenshot of the app in the canvas studio? 

  • namisrn Profile Picture
    18 on at

    Of course. Thanks in advance for the help

    Screenshot 2022-10-06 161220ssss.png
  • Verified answer
    BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @namisrn ,

     

    What you can do to simply things is to add a vertical gallery control and use the code for the Items properties. Then set the Text property of the Title label to ThisItem.ID and the Text property of the SubTitle label to ThisItem.internalemailaddress

     

    Like this the gallery will update while the user is typing the email address and there is no longer a need for the buttons.

  • namisrn Profile Picture
    18 on at

    Thank you very much for your Help

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard