Read Document

Read a document in Google Docs.

Input

Field Definition Type Required
Document
ID Unique ID of the document. String TRUE
Suggestions View Mode

Choose one of the following methods:

Default: Suggestions View Mode applied to the returned document depends on the user's current view access level.

Inline: Returned document has suggestions inline. Suggested changes are differentiated from base content within the document.

Accepted: Returned document is a preview with all suggested changes accepted.

Rejected: Returned document is a preview with all suggested changes rejected if there are any suggestions in the document.

Dropdown FALSE

Output

v
Field Definition Type
Result
Document ID Unique ID of the document. String
Title Title of the document. String
Body
Content Contents of the body. List of Objects
Start Index Zero-based start index of this structural element, in UTF-16 code units. Number
End Index Zero-based end index of this structural element, exclusive, in UTF-16 code units. Number
Paragraph Paragraph type of structural element. Object
Section Break Section break type of structural element. Object
Table Table type of structural element. Object
Table of Contents Table of contents type of structural element. Object
Headers Headers in the document, keyed by header ID. String
Footers Footers in the document, keyed by header ID. String
Footnotes Footnotes in the document, keyed by footnote ID. String
Document Style
Background Background color of the document. Object
Default Header ID ID of the default header. If not set, there's no default header. String
Default Footer ID ID of the default footer. If not set, there's no default footer. String
Even Page Header ID ID of the header used only for even pages. The value of Use Even Page Header Footer? determines whether to use the Default Header ID or this value for the header on even pages. If not set, there's no even page header. String
Event Page Footer ID ID of the footer used only for even pages. The value of Use Even Page Header Footer? determines whether to use the Default Footer ID or this value for the footer on even pages. If not set, there's no even page footer. String
First Page Header ID ID of the header used only for the first page. If not set then a unique header for the first page doesn't exist. The value of Use First Page Header Footer? determines whether to use the Default Header IDor this value for the header on the first page. If not set, there's no first page header. String
First Page Footer ID ID of the footer used only for the first page. If not set then a unique footer for the first page doesn't exist. The value of Use First Page Header Footer? determines whether to use the Default Footer ID or this value for the footer on the first page. If not set, there's no first page footer. String
Use First Page Header Footer? True indicates whether to use the first page header / footer IDs for the first page. Otherwise, False. Boolean
Use Even Page Header Footer? True indicates whether to use the even page header / footer IDs for the even pages. Otherwise, False. Boolean
Page Number Start Page number from which to start counting the number of pages. Number
Margin Top Top page margin. Updating the top page margin on the document style clears the top page margin on all section styles. Object
Margin Bottom Bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles. Object
Margin Right Right page margin. Updating the right page margin on the document style clears the right page margin on all section styles. It may also cause columns to resize in all sections. Object
Margin LeftLeft page margin. Updating the left page margin on the document style clears the left page margin on all section styles. It may also cause columns to resize in all sections.Object
Page SizeSize of a page in the document.Object
Margin HeaderAmount of space between the top of the page and the contents of the header.Object
Margin FooterAmount of space between the bottom of the page and the contents of the footer.Object
User Custom Header Footer Margins?

True if one of the following options is respected:

  • DocumentStyle marginHeader

  • SectionStyle marginHeader

  • DocumentStyle marginFooter

  • SectionStyle marginFooter

False when the default values in the docs editor for header and footer margin are used.

Boolean
Suggested Document Style ChangesSuggested changes to the style of the document, keyed by suggestion ID.Object
Named StylesNamed styles of the document.Object
Suggested Named Styles ChangesSuggested changes to the named styles of the document, keyed by suggestion ID.Object
Lists Lists in the document, keyed by list ID.Object
Named RangesNamed ranges in the document, keyed by name.Object
Revision IDRevision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision.String
Suggestions View ModeSuggestions view mode applied to the document.String
Inline ObjectsInline objects in the document, keyed by object ID.Object
Positioned ObjectsPositioned objects in the document, keyed by object ID.Object

Related topics

Google Docs connector

Workflow elements

Guidance for Google Docs connector

Google Docs API Documentation