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 Automate / Getting data from a se...
Power Automate
Answered

Getting data from a second SQL table

(0) ShareShare
ReportReport
Posted on by 169

I have 2 tables "Release" and "Users".  In Release, I have a "Created by", "Released by", and "Assigned to" column.  They are id number associated to the User table.  Currently my set up is this, where if "Release\Assigned to" is equal to "User\ID".

sobenson_0-1657829970528.png

 

 

Is there not a better way?  This has to crawl the whole User table, and does it 2 other times for Created and Assigned.  I thought of filtering the User table, but then I would need to call the SQL connector 3 times in total.  Would that be better?

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    Hi @sobenson ,

     

    I am assuming you are using the Get Rows action? 

     

    Perhaps you could use Execute Query or Execute Stored Procedure?  This way, you can write a query with OR conditions i.e. where 'Created By' = 'ID' OR 'Released By'  = 'ID' OR 'Assigned To' = 'ID'

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • Verified answer
    sobenson Profile Picture
    169 on at

    Hi @eric-cheng,

    Thanks for the reply.  I had not though of the Execute Query.  My current solution is with "Get Rows"

    sobenson_1-1658151507761.png

     

    and it seems to work better then the flow I have above, but I use that connector 3 times, one for "Created", once for "Released" and once for "Assigned". 

    I am still learning and looking for the best solution.

  • eric-cheng Profile Picture
    5,171 on at

    Hi @sobenson,

     

    Glad to hear.  The Get Rows action will do the same thing as Execute Query as long as you specify the odata Filter Query.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard