Procedures

Automation procedures in the Google Docs BDK Book.

to add a paragraph to a (document)

Adds a new paragraph to the document.

Input Concepts

Concept
Description
Type
Required
Default Value

The file to add the paragraph to

drive file reference

Yes

text

The new paragraph text.

text

Yes

style

The new paragraph's style.

enum[heading_1, heading_2, heading_3, normal_text, subtitle, title]

No

Output Concepts

Concept
Description
Type

the document's file reference

drive file reference

Examples

Add a heading to a document

add a paragraph to the document where
    the text is "New paragraph"
    the style is "HEADING_1"

to create a google document in a (folder)

Creates a new Google Docs document.

Input Concepts

Concept
Description
Type
Required
Default Value

name

The name for the new Google Docs document.

text

Yes

The folder to create the Google Docs document in.

drive folder reference

No

Output Concepts

Concept
Description
Type

the new document's file reference.

drive file reference

Examples

Create a Google Docs document called "Hello World" in a folder

create a google document in the folder where
    the name is "Hello World"

Last updated

Was this helpful?