Update Document
Update a specific document in Google Docs.
Options
| Field | Definition | Type | Required |
|---|---|---|---|
|
Operation Type |
Choose one of the following methods:
|
Dropdown | TRUE |
Input
| Field | Definition | Type | Required |
|---|---|---|---|
|
Document |
|||
|
ID |
Unique ID of the document. |
Text | TRUE |
|
Update |
|||
|
Find |
Text to be replaced. This field appears when you select |
Text | TRUE |
|
Replace With |
Text that replaces what is provided in the Find input. When this field is empty or cleared, the Text To Replace field is deleted from the document. This field appears when you select |
Text | FALSE |
|
Match Case? |
Select This field appears when you select |
True/False | FALSE |
|
Text |
Text to insert into the document. See Text in Guidance for Google Docs connector. This field appears when you select |
Text | TRUE |
|
Index |
A zero-based index, in UTF-16 code units. The index value is relative to the beginning of the segment specified by the Segment ID value. If you use this value without the Segment ID input, the body and the text are set to body. See Index in Guidance for Google Docs connector. This field appears when you select |
Text | FALSE |
|
Start Index |
The zero-based start index of this range. For the document body, use index values in the Start Index and End Index properties. They represent the index of the first character in the line and the last character respectively. You can retrieve the start and end indexes using the Read Document card. For a specific segment (header, footer, footnotes), use the End Index as the length of the line. The starting index is always This field appears when you select |
Text | TRUE |
|
End Index |
The zero-based end index of this range, exclusive. For the document body, use index values in the Start Index and End Index properties. They represent the index of the first character in the line and the last character respectively. You can retrieve the start and end indexes using the Read Document card. For a specific segment (header, footer, footnotes), use the End Index as the length of the line. The starting index is always This field appears when you select |
Text | TRUE |
|
Segment ID |
The ID for where the header, footer, or footnote is located. An empty Segment ID value uses the ID of the document's body. If this field is provided, but the Index field is empty, the location used is at the end of the body, header, footer, or footnote. Otherwise, the location is immediately before the last newline in the document segment. See Segment ID in Guidance for Google Docs connector. This field appears when you select |
Text | FALSE |
|
Reset To Default? |
Select To update inputs to the default values, select them as input fields. The following fields can't be set to the default value and are ignored:
This field appears when you select |
True/False | FALSE |
|
Bold |
Select This field appears when you select |
True/False | FALSE |
|
Italic |
Select This field appears when you select |
True/False | FALSE |
|
Underline |
Select This field appears when you select |
True/False | FALSE |
|
Strikethrough |
Select This field appears when you select |
True/False | FALSE |
|
Small Caps |
Select This field appears when you select |
True/False | FALSE |
|
Background Color |
Background color for the text. RGB or HEX color value. Format of the value for each color should be one of the following formats:
This field appears when you select |
Text | FALSE |
|
Foreground Color |
Foreground color for the text. RGB or HEX color value. Format of the value for each color should be one of the following formats:
This field appears when you select |
Text | FALSE |
|
Font Size |
Font size for the text. The measurement units are in points, equivalent to 1/72 of an inch. The default size is This field appears when you select |
Text | FALSE |
|
Font Family |
Font family of the text. Any font from the Font menu in Google Docs or from Google Fonts is acceptable. The default font is This field appears when you select |
Dropdown | FALSE |
|
Font Weight |
Weight of the font. This field can be any value that is a multiple of 100, from The default value is This field must be used with the Font Family field or the card returns an error. See Font Weight in Guidance for Google Docs connector. This field appears when you select |
Dropdown | FALSE |
|
Baseline Offset |
Vertical offset of the text from its normal position.
This field appears when you select |
Dropdown | FALSE |
|
Link |
A reference to another portion of a document or an external URL resource. If this field is populated, you must include the Link Type field. This field appears when you select |
Dropdown | FALSE |
|
Link Type |
The type of link to reference:
If this field is populated, you must include the Link field. This field appears when you select |
Dropdown | FALSE |
|
Create Paragraph Bullets |
The following fields are related to the |
||
|
Bullet Glyph Preset |
Type of bullet glyphs to use.
This field appears when you select |
Dropdown | TRUE |
|
Named Style Type |
Named style type for the paragraph.
This field appears when you select |
Dropdown | FALSE |
|
Text Alignment |
Text alignment for the paragraph.
This field appears when you select |
Dropdown | FALSE |
|
Line Spacing |
The amount of space between lines, as a percentage of normal, where normal is represented as |
Text | FALSE |
|
Text Direction |
Text direction of the paragraph. If this value isn't set, it defaults to
This field appears when you select |
Dropdown | FALSE |
|
Spacing Mode |
Spacing mode for the paragraph.
This field appears when you select |
Dropdown | FALSE |
|
Space Above |
Amount of extra space above the paragraph. If this value isn't set, it inherits the value from the parent. The measurement units are in points, equivalent to 1/72 of an inch. This field appears when you select |
Text | FALSE |
|
Space Below |
Amount of extra space below the paragraph. If this value isn't set, it inherits the value from the parent. The measurement units are in points, equivalent to 1/72 of an inch. This field appears when you select |
Text | FALSE |
|
First Line Indentation |
Amount of indentation for the first line of the paragraph. If this value isn't set, it inherits the value from the parent. The measurement units are in points, equivalent to 1/72 of an inch. This field appears when you select |
Text | FALSE |
|
Start Indentation |
Amount of indentation for the paragraph on the side that corresponds to the start of the text, based on the current paragraph direction. If this value isn't set, it inherits the value from the parent. The measurement units are in points, equivalent to 1/72 of an inch. This field appears when you select |
Text | FALSE |
|
End Indentation |
Amount of indentation for the paragraph on the side that corresponds to the end of the text, based on the current paragraph direction. If this value isn't set, it inherits the value from the parent. The measurement units are in points, equivalent to 1/72 of an inch. This field appears when you select |
Text | FALSE |
|
Keep Lines Together? |
Select If this value isn't set, it inherits the value from the parent. This field appears when you select |
True/False | FALSE |
|
Keep With Next? |
Select If this value isn't set, it inherits the value from the parent. This field appears when you select |
True/False | FALSE |
|
Shading |
Shading color for the paragraph. RGB or HEX color value. Format of the value for each color should be one of the following formats:
This field appears when you select |
Text | FALSE |
|
Image URL |
An image Uniform Resource Indicator (URI). The image is fetched at insertion time and a copy is stored for display inside the document. Images must be less than 50 MB, can't exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The length of the provided URI can't exceed 2 KB. The URI is saved with the image and exposed through the ImageProperties.content_uri field. This field appears when you select |
Text | TRUE |
|
Image Height |
Height of the image. The measurement units are in points, equivalent to 1/72 of an inch. See Image Height in Guidance for Google Docs connector. This field appears when you select |
Text | FALSE |
|
Image Width |
Width of the image. The measurement units are in points, equivalent to 1/72 of an inch. See Image Width in Guidance for Google Docs connector. This field appears when you select |
Text | FALSE |
|
Write Control |
|||
|
Revision ID |
Unique ID of the revision. |
Text | FALSE |
|
Revision Type |
Choose the revision type:
|
Dropdown | FALSE |
Output
| Field | Definition | Type |
|---|---|---|
|
Result |
||
|
Required Revision ID |
The revision ID of the document. Use the revision ID in update requests to specify which revision of a document to apply updates to and how the request should behave if the document was edited since that revision. This field appears when you select |
Text |
|
Occurrences Changed |
The number of patterns changed by the card. This field appears when you select |
Number |
|
Inline Image Object ID |
The ID of the inserted image object. This field appears when you select |
Text |