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 / 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard