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
with Microsoft Word
Search a document, update its properties, and save.
- Search the document body for the supplied text, ignoring punctuation and whitespace. The JavaScript API returns 200 with the matching ranges.
- Update the document title and keywords. The JavaScript API returns 200 with the updated document properties.
- 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.