Build Report Body
A 4-step recipe with Microsoft Word. We can help you get access.
Recipe · 4 steps
Build Report Body
with Microsoft Word
Insert a heading and table, verify paragraphs, and save.
- Insert the heading text at the end of the document body. The JavaScript API returns 200 with the affected range.
- Insert a table with the requested rows and columns at the end of the body. The JavaScript API returns 201 with the created table.
- List the document paragraphs to confirm the heading and table content were added. The JavaScript API returns 200 with the paragraph collection.
- Save the document to persist the inserted heading and table. The JavaScript API returns 204 with no content on success.
What you'll need to have ready
- documentId: The identifier of the document to build content into.
- headingText: The heading text to insert.
- rowCount: The number of rows for the inserted table.
- columnCount: The number of columns for the inserted table.
For your developer
Arazzo workflow microsoft-word:build-report-body, 4 operations: insertText → insertTable → listParagraphs → saveDocument. Specs on APIs.io.