cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KitchenKirby
Helper I
Helper I

How do I use a sharepoint lookup colum in Filter Query on Power Flows?

I have two sharepoints list :

 

Books            Reservation

-ID                 -ReservationDate

-Name           -ReturnDate

                      -Book (LookUp of Books, showing the ID)

 

I have a flow "Get Items" that return the first value when there is a reservation between the specified dates, and if the book Id is equal to the ID. But I'm unable to compare a text value with a "LookUp" value, it always return false.

 

Note: The "List Name" is Reservation

 

Here is what my "Filter Query" looks like :

 

'varReturn' gt ReturnDate and 'varReservation' le ReturnDate and 'varBookId' eq Book

 

Except for the 'varBookId' eq Book, everything is working fine...

1 ACCEPTED SOLUTION

Accepted Solutions
grantjenkins
Community Champion
Community Champion

Ah, sorry didn't catch the part with it being a Lookup column. Can you try Book/Id and see if that works.



----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.

View solution in original post

4 REPLIES 4
grantjenkins
Community Champion
Community Champion

You should have 'varBookId' = ID



----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.

If I do it, It will compare my varBookID with my Reservation ID sadly :c

grantjenkins
Community Champion
Community Champion

Ah, sorry didn't catch the part with it being a Lookup column. Can you try Book/Id and see if that works.



----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.

It works ^-^ thanks ❤️

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,622)