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 / SubstringOf Query Shar...
Power Automate
Answered

SubstringOf Query SharePoint Get Items Referencing Expanded Fields

(0) ShareShare
ReportReport
Posted on by 55

Hi All,

 

I am having a difficult time figuring out how to create a filter based on nested data. If I add a Filter Query to my [SharePoint] Get Items action referencing CN, I have no problems. However, when referencing the nested data, I cannot get the query to return data. What is the proper syntax for getting the substring of a nested value?

 

Sample Filter Query

substringof('T',CN)

Nested Sample Filter Query (Not working)

substringof('C',V_ID/Value)

Sample Return Array Record

{
"@odata.etag": "\"3\"",
"ItemInternalId": "5859",
"ID": 5859,
"CN": "999-T06-99-AS-01",
"MA_ID": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1352,
"Value": "Q24389PT"
},
"MA_ID#Id": 1352,
"C_RF": "Alice Smith",
"C_PM": "Georgia Muldrow",
"V_ID": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 42,
"Value": "ABC Company"
},
"V_ID#Id": 42,
"S_ID": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 2,
"Value": "Kamasi Washington"
}
}

 

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

     

    Hi @Olivia_Dudley ,

     

    I did a test on my side, it seems that the parameter required by the substringof() function is a field of type string.

    Please consider using Filter array or Condition to filter items.

    In addition, you could also use Parse JSON to parse the Body of Get items, which can also easily refer to the corresponding field value.

    Please refer to this blog to learn more about the use of Parse JSON.

    http://johnliu.net/blog/2018/6/a-thesis-on-the-parse-json-action-in-microsoft-flow

     

    Best Regards,

  • Olivia_Dudley Profile Picture
    55 on at

    Thanks @v-bacao-msft,

     

    I am currently using the Select action to bring any nested fields to the same level. My workaround will have to be utilizing the Filter array action as suggested. Although, I'd like to see if someone has a solution where I could call on the nested string in the Filter Query property of the SharePoint Get Items action. This way, my data set does not need to be filtered twice.

     

    Thanks for the link... John Liu is always a great resource!

  • ZMSPAC Profile Picture
    6 on at

    Hi @Olivia_Dudley ,

     

    I have a similar issue. How did you setup your filter array?

     

    Thank you

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 142 Super User 2026 Season 2

Last 30 days Overall leaderboard