Skip to main content
Community site session details

Community site session details

Session Id : Ci5mG5FiEsS8cstd6SHK8d
Power Apps - Building Power Apps
Unanswered

Search SharePoint Document Library Content not returning a value

Like (0) ShareShare
ReportReport
Posted on 2 Nov 2022 03:25:49 by

I want to search within the files on my SP document library. My flow runs successfully however, it was not returning any value. 

 

For reference, I exactly followed a video tutorial on YouTube and just change the ListID.

PowerApp to Search SharePoint Document Library Content   Part #1

https://www.youtube.com/watch?v=Im1tpGFMqX0

 

Any idea how to resolve this? Thank you

Steps in Miscrosoft Flow:

1) Initialize SearchText Variable

2) Send HTTP Request to SharePoint Accept: application/json; odata=nometadata ListID: c0d8f420-0176-495a-822d-9163065d0727 _api/search/query?querytext='@{variables('searchText')}+and+ListId:c0d8f420-0176-495a-822d-9163065d0727'&selectproperties='ListItemID,Title,Path'&RowLimit=500&clienttype='ContentSearchRegular'

3) Parse JSON { "type": "object", "properties": { "odata.metadata": { "type": "string" }, "ElapsedTime": { "type": "integer" }, "PrimaryQueryResult": { "type": "object", "properties": { "CustomResults": { "type": "array" }, "QueryId": { "type": "string" }, "QueryRuleId": { "type": "string" }, "RefinementResults": {}, "RelevantResults": { "type": "object", "properties": { "GroupTemplateId": {}, "ItemTemplateId": {}, "ResultTitle": {}, "ResultTitleUrl": {}, "RowCount": { "type": "integer" }, "Table": { "type": "object", "properties": { "Rows": { "type": "array", "items": { "type": "object", "properties": { "Cells": { "type": "array", "items": { "type": "object", "properties": { "Key": { "type": [ "string", "null" ] }, "Value": { "type": [ "string", "null" ] }, "ValueType": { "type": [ "string", "null" ] } }, "required": [ "Key", "Value", "ValueType" ] } } }, "required": [ "Cells" ] } } } }, "TotalRows": { "type": "integer" }, "TotalRowsIncludingDuplicates": { "type": "integer" } } }, "SpecialTermResults": {} } } } } 4) Select Title : item()?['Cells'][3]['Value'] Path: 4 ID: 2 5) Response { "type": "array", "items": { "type": "object", "properties": { "Title": { "type": "string" }, "Path": { "type": "string" }, "ID": { "type": "string" } }, "required": [ "Title", "Path", "ID" ] } }

 

Categories:

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Loading complete