capabilities.work

Search Body and Tag Document

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

Recipe · 3 steps

Search Body and Tag Document

Search a document, update its properties, and save.

  1. Search the document body for the supplied text, ignoring punctuation and whitespace. The JavaScript API returns 200 with the matching ranges.
  2. Update the document title and keywords. The JavaScript API returns 200 with the updated document properties.
  3. Save the document to persist the updated properties. The JavaScript API returns 204 with no content on success.
What you'll need to have ready
  • documentId: The identifier of the document to search and tag.
  • searchText: The text to search for in the document body.
  • title: The new title to set on the document.
  • keywords: The keywords to set on the document.
For your developer

Arazzo workflow microsoft-word:search-and-tag, 3 operations: searchDocument → updateDocumentProperties → saveDocument. Specs on APIs.io.