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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / powerapp v2 flow - alt...
Power Apps
Unanswered

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.

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 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

  • BCBuizer Profile Picture
    22,505 Super User 2025 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,505 Super User 2025 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.

  • BCBuizer Profile Picture
    22,505 Super User 2025 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

  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard