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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Items filter query
Power Automate
Answered

Get Items filter query

(0) ShareShare
ReportReport
Posted on by

Hi Team 

 

I'm having a filter query in my get items 

 

First Iam splitting a text from its description from the MS Form

Danny_Dicaprio_3-1712563938586.png

Compose =

split(outputs('Get_response_details')?['body/rebfcb7b61e644cbb9960039342c09c7e'], '(')[0]
 
once I split the text I'm filter that record in my sharepoint list 

 

Danny_Dicaprio_0-1712563451747.png

 

my filter formula is working for certain items in my sharepoint list and not for others 

 

 

For the ones , which is not working , there will be square box at the end 

 

Danny_Dicaprio_1-1712563561892.png

 

I thought of may be because of extra space or some upper characters issue 

 

The below one worked perfectly fine 

Danny_Dicaprio_0-1712564471881.png

 

 

Could anyone please  let me know how to fix this issue 

 

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

    Hi @Danny_Dicaprio ,

    Please try this expression in 'Compose'.

    trim(split(outputs('Get_response_details')?['body/rebfcb7b61e644cbb9960039342c09c7e'], '(')[0])

    Best Regards,

    Sunshine Gu

  • Danny_Dicaprio Profile Picture
    on at

    HI @v-yetonggu-msft 

     

    thanks for the reply 

     

    it resolved !

     

     could u please what was the issue with my function ?

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

    Hi @Danny_Dicaprio ,

    Because the select option text content extracted by your split function sometimes contains extra spaces, and the values of the columns in your list do not contain spaces, this will cause Get items to sometimes filter out 0 records.

    You can check if there are any extra spaces in your MS Form select option before '('.

    vyetonggumsft_0-1712568920098.png

    Best Regards,

    Sunshine Gu

  • Danny_Dicaprio Profile Picture
    on at

    Hi @v-yetonggu-msft 

    Hi 

    Everyone 

     

    I have a text from my MS Form should be recorded in the Lookup Column in my share point list. 

     

    Since Lookup column values can only be stored in ID, Iam getting the ID of the text value from get items. 

    Danny_Dicaprio_0-1712572711050.png

     

     

     

     

    Danny_Dicaprio_1-1712572710987.png

     

     

     

    Danny_Dicaprio_2-1712572710833.png

     

     

     But the value is not getting displayed in the SharePoint List , it is Blank. 

     

    Could you please help me to fix the issue? 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard