---
schema_version: "1"
id: cce172f1177590b062c51735a72f33d7d8f971164228a0e361293cf3ef201aff
title: Edit Quip Document Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_actions_quip_edit_doc.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_quip_edit_doc.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b0fb912128798f61a78d7e8f9837a6feb2ee844f04446f2edd0df56ef228a586
description: Edit content in a document, spreadsheet, or slide. Add or replace content based on a document section.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Edit Quip Document Action

Edit content in a document, spreadsheet, or slide. Add or replace content based on a document section.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=xcloud.anywhere_use.htm&amp;language=en_US" target="_blank">View supported editions for Quip.</a></td></tr></tbody></table>

In Flow Builder, add an Action element to your flow. In the Action field, enter Quip, and select **Edit Quip Document**.

![Warning](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_warning.png)

Warning Quip is retiring slides on January 31, 2021. After this date, the Copy Content action in Process Builder and Flow Builder no longer works, and Slides isn’t a valid document type for the Edit Document and Create Document actions. [Tell Me More](https://help.salesforce.com/articleView?id=000355252&language=en_US&mode=1&type=1)

## Set Input Values

Use values from earlier in the flow to set the inputs for the action.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:66.66666666666666%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d165355e79">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d165355e81">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Content Location</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Location in the document where you want to add content. Valid values are:</p>
              <ul>
                <li><kbd>append</kbd>–To add content to the end of the
                  document, enter this value.</li>
                <li><kbd>prepend</kbd>–To add content to the beginning of the
                  document, enter this value.</li>
                <li><kbd>after_section</kbd>–To add content after a designated
                  section, enter this value. Valid only if <strong class="uicontrol">Section Anchor
                    Link</strong> is specified.</li>
                <li><kbd>before_section</kbd>–To add content before a
                  designated section, enter this value. Valid only if <strong class="uicontrol">Section Anchor
                    Link</strong> or <strong class="uicontrol">Section Match Type</strong> is specified.</li>
                <li><kbd>replace_section</kbd>–To replace an existing section
                  with new content, enter this value. Valid only if <strong class="uicontrol">Section Anchor
                    Link</strong> or <strong class="uicontrol">Section Match Type</strong> is specified.</li>
                <li><kbd>after_document_range</kbd>–To add content to a
                  template after a document range, enter this value. Valid only if
                  <strong class="uicontrol">Document Range Heading</strong> is specified.
                </li>
                <li><kbd>before_document_range</kbd>–To add content to a
                  template before a document range, enter this value. Valid only if
                  <strong class="uicontrol">Document Range Heading</strong> is specified.
                </li>
                <li><kbd>replace_document_range</kbd>–To replace existing
                  content based on a document range, enter this value. Valid only if
                  <strong class="uicontrol">Document Range Heading</strong> is specified.
                </li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Document URL</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">URL of the document that you want to edit. For example:
              <kbd>https://salesforce.quip.com/GVnGbtEasAGa</kbd>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Edit Document Type</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Type of document that you want to edit. Valid values are:</p>
              <ul>
                <li><kbd>document</kbd>–To edit a document, enter this
                  value.</li>
                <li><kbd>spreadsheet</kbd>–To edit a spreadsheet, enter this
                  value.</li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Content</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Optional. Content added to the document that you want to edit. Valid only if
                <strong class="uicontrol">Content Format</strong> is set to <kbd>html</kbd>. Valid
                values are:
              </p>
              <ul>
                <li>String values</li>
                <li><kbd>@[Salesforce user ID]</kbd>–To @mention a Salesforce
                  user in the document, enter the Salesforce ID. If the user’s Salesforce email is
                  connected to Quip, the user ID is replaced with a Quip user @mention. If not,
                  the Salesforce ID is replaced with the user’s Salesforce email.</li>
                <li><kbd>@[person1@quip.com]</kbd>–To @mention a user by email,
                  enter this value.</li>
                <li><kbd>@Everyone</kbd>–To send a notification to everyone in
                  the document, enter this value.</li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Content Format</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Optional. Format of content added to the document. By default, content format
                is set to html. Valid values are:</p>
              <ul>
                <li><kbd>html</kbd>–To format text added to <strong class="uicontrol">Document
                    Content</strong> with html, enter this value.</li>
                <li><kbd>liveapp</kbd>–To add a live app to your document,
                  enter this value. Only valid if <strong class="uicontrol">Document Type</strong> is set to
                  <kbd>document</kbd>.
                </li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Disable Extra Lines in Quip</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">Optional. Boolean parameter that prevents Quip from inserting an extra line
              between paragraphs. The default is <kbd>false</kbd>, meaning that by
              default extra lines <em>are</em> inserted.</td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Document Range Heading</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">Optional. Heading text that marks the start of the document range.</td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Element Type</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Optional. The type of spreadsheet element to edit. Only valid if
                <strong class="uicontrol">Document Type</strong> is set to <kbd>spreadsheet</kbd>.
                Valid values are:
              </p>
              <ul>
                <li><kbd>row</kbd>–To edit a spreadsheet row, enter this
                  value.</li>
                <li><kbd>column</kbd>–To edit a spreadsheet column, enter this
                  value.</li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Image Number</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Optional. Image index of an image on a slide. Only valid if <strong class="uicontrol">Document
                  Type</strong> is set to <kbd>slides</kbd>. Valid values are: </p>
              <ul>
                <li><kbd>Image integers</kbd>–Integers represent an image index
                  on a slide. Images are ordered from top to bottom. Images closer to the top of a
                  slide have an image integer of 1. Images closer to the bottom have the biggest
                  integers. If there are multiple images on a slide with the same vertical
                  positions, the image numbers are ordered from left to right. If there are
                  multiple images on a slide with the same horizontal and vertical positions, the
                  image that is behind the other one has an image number of
                  <kbd>1</kbd>. The image in front has an image number of
                  <kbd>2</kbd>.
                </li>
              </ul>
              <p style="margin-bottom:0;">Quip is retiring slides on January 31, 2021. After this date, the Copy
                Content action in Process Builder and Flow Builder no longer works, and Slides
                isn’t a valid document type for the Edit Document and Create Document actions.
                <a href="https://help.salesforce.com/articleView?id=000355252&amp;language=en_US&amp;mode=1&amp;type=1" target="_blank">Tell Me More</a>
              </p>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Image URL</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Optional. The URL of an image in a slide deck. Only valid if <strong class="uicontrol">Document
                  Type</strong> is set to <kbd>slides</kbd>.
              </p>
              <p style="margin-bottom:0;">Quip is retiring slides on January 31, 2021. After this date, the Copy
                Content action in Process Builder and Flow Builder no longer works, and Slides
                isn’t a valid document type for the Edit Document and Create Document actions.
                <a href="https://help.salesforce.com/articleView?id=000355252&amp;language=en_US&amp;mode=1&amp;type=1" target="_blank">Tell Me More</a>
              </p>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Live App Type</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Type of live app added to the document. Required if <strong class="uicontrol">Content
                  Format</strong> is set to <kbd>liveapp</kbd>. Only documents support
                live apps. Valid values are:</p>
              <ul>
                <li><kbd>salesforce_record</kbd>–To add the Salesforce Record
                  live app to the document, enter this value. </li>
                <li><kbd>salesforce_list</kbd>–To add the Salesforce List live
                  app to the document, enter this value.</li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Object Type</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">Type of object used by the Salesforce List live app. Required if <strong class="uicontrol">Live
                App Type</strong> is set to <kbd>salesforce_list</kbd>. Only string
              values are supported. For example: <kbd>Account</kbd>,
              <kbd>Opportunity</kbd>, or
              <kbd>CustomObject__c</kbd>.
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Record Name</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">Optional. Name of the record added to the document through the Salesforce
              Record live app. Valid only if the <strong class="uicontrol">Live App Type</strong> is set to
              <kbd>salesforce_record</kbd>. Only string values are
              supported.
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Record Type</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">Optional. Type of object used by the Salesforce Record live app. Valid only if
              <strong class="uicontrol">Live App Type</strong> is set to
              <kbd>salesforce_record</kbd>. Only string values are supported. For
              example: <kbd>Account</kbd>, <kbd>Opportunity</kbd>, or
              <kbd>CustomObject__c</kbd>.
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Salesforce List View ID</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">Optional. ID of the Salesforce list view added to the document. Valid only if
              <strong class="uicontrol">Live App Type</strong> is set to
              <kbd>salesforce_list</kbd>.
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Salesforce Org Name</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">Optional. Salesforce org name used in the live app. Valid only if
              <strong class="uicontrol">Content Format</strong> is set to <kbd>liveapp</kbd>. Only
              string values are supported. For example: <kbd>Acme</kbd>.
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Salesforce Record ID</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">Optional. ID of the Salesforce record added to the document. Valid only if
              <strong class="uicontrol">Live App Type</strong> is set to
              <kbd>salesforce_record</kbd>.
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Section Anchor Link</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">URL of a section in the document where you want to add or replace content.
              Valid only if <strong class="uicontrol">Content Location</strong> is set to
              <kbd>before_section</kbd>, <kbd>after_section</kbd>, or
              <kbd>replace_section</kbd>. For example:
              <kbd>https://[quip_site_url]/GVnGAtEawAGh/Source-Slide#JUJACAuc0ps</kbd>,
              where Source-Slide#JUJACAuc0ps is a specific slide in the slide deck.
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Section Match Type</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Placement of keywords used to identify the section where you want to add or
                replace content. Valid only if <strong class="uicontrol">Content Location</strong> is set to
                <kbd>before_section</kbd>, <kbd>after_section</kbd>, or
                <kbd>replace_section</kbd>, and the <strong class="uicontrol">Document Type</strong>
                is <kbd>document</kbd>. Keywords aren’t case-sensitive and ignore HTML
                tags. Valid values are:
              </p>
              <ul>
                <li><kbd>prefix</kbd>–To find a keyword in a document based on
                  the first part of a word, enter this value. For example,
                  <kbd>hello</kbd> is the prefix for
                  <kbd>helloworld</kbd>.
                </li>
                <li><kbd>suffix</kbd>–To find a keyword in a document based on
                  the end of a word, enter this value. For example, <kbd>world</kbd>
                  is the suffix for <kbd>helloworld</kbd>.</li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Section Style</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Format of the document section where you want to add or replace content.
                Required if <strong class="uicontrol">Section Type</strong> is set to
                <kbd>textmatch</kbd>. Valid values are:
              </p>
              <ul>
                <li><kbd>paragraph</kbd>–To find a keyword in a paragraph,
                  enter this value.</li>
                <li><kbd>heading</kbd>–To find a keyword in a heading, enter
                  this value.</li>
                <li><kbd>list</kbd>–To find a keyword in a list, enter this
                  value.</li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Section Text</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">Keywords to identify the section where you want to add or replace content.
              Required if <strong class="uicontrol">Section Match Type</strong> is specified. Only string values
              are supported.</td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Section Type</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Optional. Determines how a section is edited. Valid values are:</p>
              <ul>
                <li><kbd>anchorlink</kbd>–To edit a document section based on
                  its anchor link, enter this value. Valid only if <strong class="uicontrol">Section Anchor
                    Link</strong> is set up.</li>
                <li><kbd>textmatch</kbd>–To edit a document section based on a
                  keyword, enter this value.</li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Slide Layout</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Optional. The slide element to edit. Only valid if <strong class="uicontrol">Document
                  Type</strong> is set to <kbd>slides</kbd>. Valid values are:</p>
              <ul>
                <li><kbd>single_column</kbd>–To edit a slide column, enter this
                  value.</li>
                <li><kbd>image</kbd>–To edit a slide image, enter this
                  value.</li>
              </ul>
              <p style="margin-bottom:0;">Quip is retiring slides on January 31, 2021. After this date, the Copy
                Content action in Process Builder and Flow Builder no longer works, and Slides
                isn’t a valid document type for the Edit Document and Create Document actions.
                <a href="https://help.salesforce.com/articleView?id=000355252&amp;language=en_US&amp;mode=1&amp;type=1" target="_blank">Tell Me More</a>
              </p>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e79 "><strong class="uicontrol">Slide Number</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d165355e81 ">
              <p>Optional. The slide index to edit. Only valid if <strong class="uicontrol">Document
                  Type</strong> is set to <kbd>slides</kbd>. For example, to edit the
                first slide of a deck, enter <kbd>1</kbd>.</p>
              <p style="margin-bottom:0;">Quip is retiring slides on
                January 31, 2021. After this date, the Copy Content action in Process Builder and
                Flow Builder no longer works, and Slides isn’t a valid document type for the Edit
                Document and Create Document actions. <a href="https://help.salesforce.com/articleView?id=000355252&amp;language=en_US&amp;mode=1&amp;type=1" target="_blank">Tell Me More</a></p>
            </td>
          </tr>
        </tbody>
      </table>

## Store Output Values

 
| Output Parameter | Description |
| --- | --- |
| **Document ID** | ID of the edited document |
| **Document Link** | URL of the edited document |
| **Document Title** | Title of the edited document |

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_example.png)

Example A sales rep wants to update their Account Plan and add a list view of open opportunities related to the account. You can create a flow that uses the Edit Document core action to add the Salesforce List live app to the end of the Account Plan.

![append list live app to document](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/flow/flow_quip_edit_doc_liveapp.png)

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_example.png)

Example A service manager wants to update an Account Plan with an account history. The account is up for renewal and the service manager wants to make sure that the sales rep has the necessary background on past cases before contacting the customer. You can create a flow that uses the Edit Document core action to add an account history to an Account Plan and place it before the placeholder lorem.

![Add content before section](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/flow/flow_quip_edit_doc_before_1.png)

![edit doc before lorem](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/platform_automation/images/flow/flow_quip_edit_doc_before_2.png)

#### See Also

- [Add and Edit Elements](https://help.salesforce.com/s/articleView?id=platform.flow_build_elements.htm&release=264.0.0&type=5 "Use elements to define actions that the flow can run. When they’re on the canvas, connect them to create the order in which they run.")