Jump to a Section

Overview

The first time you add a Google Docs card to a Flow, you will need to create a configuration. This will allow you to connect to your account, save your account information, and reuse that configuration next time you build a Flow with the connector. That way, you don’t have to sign in every time you want to build a Flow with this Connector. Instead, use the configuration you have already set up. You can create and save multiple configurations and share them with your teammates.

Here’s how to set up a new configuration in Google Docs:

  1. First, enter in an Account Nickname. This should be unique so if you are connecting multiple Google Docs accounts you will be able to tell them apart.
  2. Then click “Create” to finish this configuration.

    Actions

    • Add Image

      Adds and image from a specified Google Drive location or URL.

      Options

      • Add Image: Choose either “From Google Drive” or “From URL”.

      Input Fields

      • Document
        • Document ID (text): The ID of the document where the image will be added. Can be found in the URL of the document, or by using Google Drive - SearchFiles.
          • If no document exists, use Create Document, which will also provide the new Document ID.
        • Index (number): Where in the document the image should be placed. In a document with paragraphs, to place the image after the first paragraph, you would enter an index of 1. Note: if you enter an index value which is larger than the number of elements in the document, it will return an error.
        • Image URL or File ID (text): the URL of the image or the Google File ID (found in the URL).

      Output Fields

      • Adds the image to the document.
    • Add Paragraph

      Adds a paragraph of text to a specified location in a Google Document.

      Input Fields

      • Document
        • Text (text): the text to be added to the document.
        • Document ID (text): found in the URL of the Google Doc, or by using Google Drive- Search Files.
          • If no document exists, use Create Document, which will also provide the new Document ID.
        • Index (number): the location where the text will be added. Index value of 0 will put the text at the beginning of the document. Each paragraph/element has an index value of 1.

      Output

      • Makes changes to the document.
    • Create Document

      Makes a new Google Document.

      Input Fields

      • Document
        • Document Title (text): The title of the document.

      Output Fields

      • Document ID (text): Returns the Document ID.
    • Delete Document

      Use this card to delete a particular document in Google Docs.

      Input Fields

      This card only needs the Document ID so it knows which file to delete

      • Document ID
        • ID (text): You can find the ID by copy and pasting a portion of the link of that document. For example, if the link while viewing the desired file was: https://docs.google.com/document/d/**1_gSTU3kyEVmLWze9ZFM5e6Ibjmh1L4NKStdVzfJZn8**/edit          Only copy and paste the bolded region of the link. Do not include any slashes or the possible “/edit” at the end.
        • Another possible way to get this ID is by using the Google Drive “Search Files” card. Enter the inputs and it will return the document ID which can be copied to a delete file card.
          • More information about how to use search file to get a document ID here.

      Output Fields

      This card’s output is the deleting of a single file.

    • Replace Multiple Terms

      Action that finds multiple terms in a Google Doc at once and replaces them with something else.

      Input Fields

      • Document
      • Terms (text): Create as many of these fields as necessary. Each one corresponds to a term that will be replaced. The Display Name of each field is the term that will be searched for. The data entered into each field will replace the Display Name of each field in the Google Doc. (NOTE: Edit the Display Name of a field by either typing the name when you first create the field OR clicking the “Aa” to the right of the field name and then clicking “Customize…”)
    • Replace Term

      Finds and replaces a specified term in a Google Doc.

      Input Fields

      • Document ID (text): the numerical and character string found in the URL of the google document you wish to edit.
      • Find text (text): the text to change.
      • Replace text (text): the text that will replace the original term.

      Output Fields

      • Changes are made to the document.
    • Save As PDF

      Saves a Google Document as a PDF.

      Input Fields

      Output Fields

      • File ID: The ID of the PDF.