Search and Download Document
A 3-step recipe with Microsoft Word. We can help you get access.
Recipe · 3 steps
Search and Download Document
with Microsoft Word
Search for a document by name and download its content.
- Search the drive hierarchy for items matching the query string and capture the identifier of the first match.
- Read the full metadata of the matched item to confirm it is the intended document before downloading.
- Download the primary file stream of the matched document. Graph returns 200 with the binary content of the file.
What you'll need to have ready
- searchText: The search query text, e.g. a document filename.
For your developer
Arazzo workflow microsoft-word:search-and-download, 3 operations: searchDriveItems → getDriveItem → downloadContent. Specs on APIs.io.