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 Automate
Answered

Get Item Filter Quer

(0) ShareShare
ReportReport
Posted on by

Hi

 

I have a flow triggered by a new form (MS Form) response. Within this flow,

I need to filter items from a SharePoint list based on a specific column called "Top IT risks" and the value submitted from the form.

Top IT risks Is lookup column in my SharePoint list.

 

Danny_Dicaprio_1-1710325808601.png

 

I have added following formula in the filter query but it's showing some error.

 

Top_IT_risks/Value eq '[EOSL & vulnerabilities for Servers ]'

 

Danny_Dicaprio_0-1710325738783.png

  showing an error like this Column 'Top_IT_risks' does not exist. It may have been deleted by another user.
clientRequestI

Could anyone please help me to fix this issue? 

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

    Hi @Danny_Dicaprio ï¼Œ

    First of all, you need to make it clear that Top_IT_risks is not a selection column. There is a difference between lookup columns and ordinary single selection columns in Filter Query.

    We not only need the column names of the lookup, but also the column names referenced by the lookp columns.

    I did a test for your reference.

    In my scenario:

    My SharePoint List:

    vyetonggumsft_13-1710333410718.png

    vyetonggumsft_12-1710333310881.png

    My Flow:

    vyetonggumsft_14-1710333454671.png

    vyetonggumsft_10-1710333137650.png

    Best Regards,

    Sunshine Gu

  • Danny_Dicaprio Profile Picture
    on at

    HI @v-yetonggu-msft 

     

    Thanks for the response

     

    I made the changes But still getting some error , could you please help me

     

    My lookup column name is Risk_name( Not a Title column , its a single line text column )

     

    Danny_Dicaprio_2-1710336789048.png

     

    Danny_Dicaprio_0-1710336560533.png

     

     

    I tried the following formula 

     

    Top IT risks/Risk_name eq'EOSL & Vulnerabilities for Servers'

     

    Danny_Dicaprio_1-1710336635525.png

     

    Danny_Dicaprio_3-1710336921225.png

     

     

  • Verified answer
    MrGott Profile Picture
    101 on at

    You need to use the internal Name of the Lookup Column. 

    To view them enter the SharePoint List Settings (Gear icon on top right corner) -> Select the LookUp Column

     

    Inspect the URL of the site. The URL ends like "&Field=YOURFIELDNAME". Use that Fielaname in your query.

     

    PS: You still need to use the /Value or /Title in the odata query

  • Danny_Dicaprio Profile Picture
    on at

    @AndiM @v-yetonggu-msft 

     

    Thanks for your response guys , I have added the filed name 

     

    &Field=Top_x0020_IT_x0020_risks

     

    Now also some error is showing up 

     

    Top_x0020_IT_x0020_risks/Risk_name eq'EOSL & Vulnerabilities for Servers'

     

    Danny_Dicaprio_0-1710338146439.png

     

    Could u please help me to fix this one 

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @Danny_Dicaprio ,

    Similarly, you need to enter another list to view the internal name of the Risk_name column.

     

    Best Regards,

    Sunshine Gu

  • Danny_Dicaprio Profile Picture
    on at

    Hi  

    @v-yetonggu-msft   @AndiM 

     

    Really appreciate your response guys 

    it worked.

     

    But the values are comming on apply to each is there is any way to get rid of that

    Danny_Dicaprio_0-1710339836139.png

     

  • Verified answer
    MrGott Profile Picture
    101 on at

    get items will always give you an array. 

    You could use the first (or last) function to get only one item.

    For handyness you could use the "Get Item" with and leverage a powerfx statement like: first(outputs('Get_Items_for_risk_manager_level...'))?['ID]

     

    or you just live with the apply to each 😄

  • Danny_Dicaprio Profile Picture
    on at

    @AndiM 

     

    Tired of these apply to each 😂

     

    Anyway thanks for the support man, really appreciate it

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