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 / Query to get a range o...
Power Automate
Unanswered

Query to get a range of data in between two item

(0) ShareShare
ReportReport
Posted on by 73

The scenario is below:
The user able to input Item No A and Item No B in power app, it will trigger the power automate to retrieve all item data row between Item No A and Item No B from SQL Database.

Is that anyway to achieve this scenario? 
I thinking may use the row id which SQL Database auto assigned and retrieve data row in between two value, but I don't know how to write the query in the SQL connector.

Any help will be great, thanks. 

 

Categories:
  • manuelstgomes Profile Picture
    6,643 on at

    Hi @NeohLooi 

     

    In your case, I would build a Stored Procedure that would take the values and do the query. Then you receive the values back to the Flow and back to Power Apps.

     

    I've done this in the past, and it works great.

     

    Would this be possible in your case?

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

  • NeohLooi Profile Picture
    73 on at

    It seem possible in my case, is that any guide on that?

  • NeohLooi Profile Picture
    73 on at

    It seem possible in my case, is that any guide on that?

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard