web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / filter outputs expression
Power Automate
Unanswered

filter outputs expression

(0) ShareShare
ReportReport
Posted on by 157

Hi, 

 

I have two SP lists ( A, B) 

list B contain a column name (Doc_ID) , It should be a reference for A list ID column 

 

A >>> ID, Title, Name, ... 

B >>> ID, Title, Doc_ID, Name, ... 

 

I have a flow with multiple steps, one them with name (Get Items for list B)

the next step is Compose with

 

outputs('Get_Items_For_list_B')

 

to give me all details, But I need to filter the outputs by a specific ID

 

I need help about the code please!

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,858 Most Valuable Professional on at
    Re: filter outputs expression

    Hi @ElMeSaFeR 

     

    If you looking to filter the List B by specific ID then use the filter query to extract the values.

     

    image.png

     

    If your ID is numeric column then you don't need to use the single quotes around it.

     

    ID eq 10

     

    Thanks

     

  • Sharif Alhennawy Profile Picture
    157 on at
    Re: filter outputs expression

    @abm 

    Thanks a lost for your reply, but I need it in code because I'm using a "Compose" outputs already

    so I need to filter this outputs 

  • abm abm Profile Picture
    32,858 Most Valuable Professional on at
    Re: filter outputs expression

    Hi @ElMeSaFeR 

     

     Could you please explain what you meant by code and you using compose? Could you post a screenshot of your flow?

     

    Thanks

  • Sharif Alhennawy Profile Picture
    157 on at
    Re: filter outputs expression

    Hello @abm 

     

    this this the steps 

     

    11.png

     

    then this is the outputs 

     

    22.png

     

    I need expression like 

    Outputs('GetItems') where ID = DocID 

     

    to replace it in the (Compose 2) step

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: filter outputs expression

     

    Hi @ElMeSaFeR ,

     

    If you want to filter items with equal values of ID and DocID, I am afraid the best option is to use Filter array. At present, we cannot directly use expression in Compose to filter an array. There is no function can achieve this.

     

    I noticed that the value of DocID is a string, then you also need to use int() function to convert this value.

    Image reference:

    25.PNG

    Hope this helps.

     

    Best Regards,

  • Sharif Alhennawy Profile Picture
    157 on at
    Re: filter outputs expression

    @v-bacao-msft 

    Thanks a lot

    it's working with me 

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard