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 / If conditions in the g...
Power Automate
Unanswered

If conditions in the get items of filter query

(0) ShareShare
ReportReport
Posted on by

Hi every one 

 

Is there is any wany to use if condition in the get items filter query? 

 

In my get items I want to filter Top_x0020_IT_x0020_risks/Riskname eq'@{outputs('Compose_2')}'

 

If the above condition is not meT I want to filter Title eq 'Central Risk Team'

  

can we add both conditions in the get items filter query  ?

 

(Top_x0020_IT_x0020_risks/Riskname eq '@{outputs('Compose_2')}' or Title eq 'Central Risk Team')

 

i tried the above formula but it is only filtering Title eq 'Central Risk Team.'

 

could anyone please help mem to fix it 

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    on at

    Hi @Danny_Dicaprio ,

     

    What is type of Top_x0020_IT_x0020_risks/Riskname ? Are you using _x0020_ to replace spaces in column name?

    If it is text type, I recommend you delete spaces in column name and try below expression.

    TopITrisks/Riskname eq '@{outputs('Compose_2')}' or Title eq 'Central Risk Team'

     

     

    Best regards,

    Rimmon

  • Danny_Dicaprio Profile Picture
    on at

    Hi @v-mengmli-msft 

     

    thanks for the reponse 

     

    Basically Topi Risk is a vlook up column , thats why I have taken the field name of the column name 

     

    I have tried this , but the issue is  have already values in central Risk Team so instead of checking the first condition it is directly filering the values in the Title column 

     

    if the first condition is not met only then I need to filter the title column name with value central risk Team 

     

     Can that be done  ? any help would be much appreciated 

    opITrisks/Riskname eq '@{outputs('Compose_2')}' or Title eq 'Central Risk Team'

     

  • v-mengmli-msft Profile Picture
    on at

    Hi @Danny_Dicaprio ,

     

    Sorry. Another question.

     

    Does "if the first condition is not met only then I need to filter the title column name with value central risk Team " mean the same as "filter out records that meet either of the criteria"?

     

    Theoretically, this is the corresponding filter expression.

    opITrisks/Riskname eq '@{outputs('Compose_2')}' or Title eq 'Central Risk Team'
    

     

     

    Best regards,

    Rimmon

     

  • Danny_Dicaprio Profile Picture
    on at

    @v-mengmli-msft 

     

    "I'm trying to filtering records based on specific criteria within my SharePoint list. Specifically, I aim to filter records where either of the following conditions is met:

     

    1. TopITrisks/Riskname equals the value obtained from the 'Compose_2' action output.
    2. Title equals 'Central Risk Team'.

    The issue arises when both conditions are met, as the filtering prioritizes the 'Title' condition over the 'TopITrisks/Riskname' condition. In such cases, I require the filter to prioritize the 'TopITrisks/Riskname' condition and retrieve its corresponding value instead of that of 'Central Risk Team'."

     

    Can u please help me on this 

  • v-mengmli-msft Profile Picture
    on at

    Hi @Danny_Dicaprio ,

     

    I wonder how you learned about this order of processing. I think I'll learn a lot and attempt to figure out a solution.

     

     

    Best regards,

    Rimmon

     

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard