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 / Sharepoint Get Items O...
Power Automate
Answered

Sharepoint Get Items Odata filter substringof or contains usage

(0) ShareShare
ReportReport
Posted on by 5

Hi ,  

I am trying to use  the Odata filter with substringof command to filter only the lines that contains some specific names,  the names are SPACE delimited string values like "USA CANADA GERMANY" 

i tried : 

substringof(ContryName,'CANADA')  
but it is not working , error code 400 

 

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

     

    Hi @Yonik ,

     

    You should put the field name as the second parameter in substringof() function:

    117.PNG

    Reference:

    https://sharepains.com/2018/11/12/sharepoint-get-items-odata-filter-query/

    Besides, please try to run Get items action without configuring Filter Query first, then check the body of Get items action to get the internal name of the field.

    Please take a try again.

     

    Best Regards,

  • Yonik Profile Picture
    5 on at

    Thanks @v-bacao-msft ,  

    Your recommendation was very correct, seems that share point list does not use same column names in FLOW automation.  

    More over the calculated field is not identified by FLOW at all.  

     

    However i solved the problem by using "yes/no" fields  and filtering with "EQ" operator.  

    Thanks  again  

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard