capabilities.work

Search and Download Document

A 3-step recipe with Microsoft Word. We can help you get access.

Recipe · 3 steps

Search and Download Document

Search for a document by name and download its content.

  1. Search the drive hierarchy for items matching the query string and capture the identifier of the first match.
  2. Read the full metadata of the matched item to confirm it is the intended document before downloading.
  3. 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.