Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Using List ID in Filter query

Posted on by 64

I hvae two SP List (a detail and summary list).  Both lists are population at the same time via a flow taking information from a form.  Once it is determined that two items on the detail list can be summarized, the user will add a identifier to the detail list.  I want to be able to update the summary list with this user defined identifier.  My idea was use use the List ID as a way to 'find' the summary item.  If the flow that creates the items, I create the Summary list item first and then created a numeric column on the Detail list to store the Summary List ID.   When the user adds the identifier to the detail list a flow runs looking for the change.  I am using the filter query in Get Items for the Summary List - ID eq Summary List ID.  Below:

tverticchio_0-1699665219045.png

 

Unfortunately nothing is ever found in this Get Items action.  I suspect it is due to a difference in data type.  I have tried lots of different things and nothing seems to work.  What am I missing? 

Thank you

  • tverticchio Profile Picture
    tverticchio 64 on at
    Re: Using List ID in Filter query

    Ultimately, I reworked the flow and did not do a second Get Items if nothing is found in the first.  The reworked flow seems to be providing the correct results.  

     

  • tverticchio Profile Picture
    tverticchio 64 on at
    Re: Using List ID in Filter query

    1. Removed the apostrophes.  Still doesn't work

    2. Do you mean Get items or Get items 2?  If a record is found under Get Items, there is a different set of actions.  The Get Items 2 comes into play when nothing is found under Get Items.  Right now when I run, I am assuming that nothing is found because when I look at the output of the run, this section is greyed out.  (see below) Perhaps I made a bad assumption here. 

    tverticchio_0-1699911646209.png

    3.  I just ran with a hardcoded value in the filter query for Get Items 2 and the result is also greyed out.  

     

    So, now I am reevaluating what I thought the issue was to begin with.  Basically, I am doing a Get items with a filter query on X.  If not found, I want to do another Get Items using a different filter query... 

     

    Thank you!

     

  • trice602 Profile Picture
    trice602 10,944 on at
    Re: Using List ID in Filter query

    Hi @tverticchio ,

     

    I'm out of time this morning but checking some posts from the phone.

     

    Number to number doesn't use apostrophes.  I'm wondering if you have checked the output from get items, is there anything there? I'm trying to determine if it is the get items action or the condition that is the root cause.

     

    What I would also try is used a different unique column or two and see if that works.

     

    Also make sure both I'd columns are in fact number columns; is very easy to assume they are but maybe one is actually a string. So validate by using string() for both values and user the apostrophes for the string value.

     

    Tom

  • tverticchio Profile Picture
    tverticchio 64 on at
    Re: Using List ID in Filter query

    I assume you have already had your morning coffee - afternoon tea perhaps?? 

     

    Attached are screen shots of the flow.  It is the Get items 2 under Apply to each 2 that is not finding anything.  'Community List ID' is a numeric column on the Detail list, populated by the ID of the Summary List when created.  Both lists are initially populated in the same flow when a form is submitted.  Hopefully this provides enough detail for you.  Thank you - appreciate it!

  • trice602 Profile Picture
    trice602 10,944 on at
    Re: Using List ID in Filter query

    Hi @tverticchio ,

     

    Can you share more of your flow please? I'm traveling tonight but would love to review this over coffee in the morning, it sounds like a solvable task.

     

    Also, share the rows from each list you want to compare and update.

     

     

  • tverticchio Profile Picture
    tverticchio 64 on at
    Re: Using List ID in Filter query

    Just tried that.  Same result. 

  • trice602 Profile Picture
    trice602 10,944 on at
    Re: Using List ID in Filter query

    Hi @tverticchio ,

     

    Can you put the dynamic content between apostrophessuch as ID eq 'dynamiccontent'.

     

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard