capabilities.work

Author Document from HTML

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

Recipe · 3 steps

Author Document from HTML

Create a document, insert HTML, and save it.

  1. Create a new blank Word document. The JavaScript API returns 201 with the new document object.
  2. Insert the HTML content into the document body at the requested location. The JavaScript API returns 200 with the affected range.
  3. Save the document to persist the inserted content. The JavaScript API returns 204 with no content on success.
What you'll need to have ready
  • html: The HTML content to insert into the document body.
  • location: Where to insert the HTML (Start, End, Before, After, Replace).
For your developer

Arazzo workflow microsoft-word:author-document, 3 operations: createDocument → insertHtml → saveDocument. Specs on APIs.io.