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
Unanswered

REST API SharePoint

(1) ShareShare
ReportReport
Posted on by 23

Hello,

 

I have a Power Automate flow calling a REST API for searching for word(s) in documents in a SharePoint document library.

/_api/search/query?querytext=%27@{triggerBody()['text']}%20path:"https://org.sharepoint.com/sites/SiteName/DocLib*"%27&RowLimit=@{triggerBody()['text_1']}&STARTROW=@{triggerBody()['text_2']}

 

This works and provides me with the document which contains the word.

I've tired for a long time to be able to count the number of times the word appears in each document, or provide a link to the paragraph where the word appears, but the output I get back from the Send an HTTP request to SharePoint action, only has  metadata, I cannot tap into the content of the file.

I've tried using the Get file content action, but the file identifier does not find the content, finds the file, but not the content, so I cannot do a count on number of times a word appeared in the document it provides... do I use another HTTP request, or how do i progress my mind is exhausted 

Categories:
I have the same question (0)
  • PAppsAlways1 Profile Picture
    23 on at

    @Office365Master would you be able to help please?

  • CU08101414-0 Profile Picture
    2 on at
    Hi, i am currently facing the same issue, did you ever find the solution to this?

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