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 Automate / Doing a lookup for an ...
Power Automate
Unanswered

Doing a lookup for an SQL Get Row action

(0) ShareShare
ReportReport
Posted on by 3,340

I have two values that need to match and to return the value of another column based on that search.  A typical lookup with and.  Is there a way to do this?  This was the statement for the and condition I was wanting to use, but I not know how to tell it to return the rowID for the true condition.

 

and(equals(body('Get_row_-_Documents')?['DocumentID'],triggerBody()?['DocumentID']),equals(body('Get_row_-_Documents')?['LatestRevisionNo'],triggerBody()?['RevNr']))
Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi @martinav,

     

    Could you provide more info about your flow? How is it configured? Are you using the function in a Condition? Have you created a column of Id and set it as primary key?

     

     

    Best regards,

    Mabel Mao

  • Verified answer
    martinav Profile Picture
    3,340 on at

    I have learned much since my post.  Haivng to learn an entirely different language (Odata) to do a filter is yet another oddity that takes hours to figure out.  Powerapps, Flow, etc are great tools, but there are quite a few things like this that really keep me from being as productive as I should with these tools.  Here is how Ive ended up doing lookups.

     

    I have to do an SQL Server - Get Rows action.  Its the only action that allows the filter.  Then, doing a simple simple equality with an 'and'.

     

    image.png

     

    This works, then I nested several of these one after another to gather data from other tables.  This creates an apply to each, even though the results of my filters are only one item.  It makes it cumbersome to work with, but it does work.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard