---
title: "Updating Generated Files - Appiphony"
url: "https://appiphony.com/docs/drive-connect/features/document-generation-legacy/updating-generated-files"
---

# Updating Generated Files

With the **Update File Data** feature, Drive Connect supports **remerging** or **regenerating** previously generated Google Docs, Slides, and Sheets. Only files that have been merged as Google Docs, Slides, or Sheets files will have the option to remerge or regenerate. To utilize this feature, users must possess Google File sharing roles such as Owner, Editor, Content Manager, or Contributor.

### Remerge File Data

If the file can be remerged, users can select **Update File Data** from the Drive Links or Drive File component. Once remerged, any supported merge fields will update with new data from the record while maintaining any manually updated text in the document.

### ​​Regenerate as a New File

If the file can be regenerated, users can select **Update File Data** from the Drive Links or Drive File component. Once regenerated, the document will merge again using the base template of the originally merged document.

## Remerge Files

Users with permission to edit Google Drive files will have the option to **Remerge File Data**. Remerging a document will update any pre-existing data with the latest information from a Salesforce record while preserving any manual text updates made to the file. The result will be a new version of the same file. Users can revert any changes by restoring a previous version through Google Drive.

1. Navigate to the **Drive Links** or **Drive File** component on an object record page.
2. Select the drop-down list of options for a merged Google File. This can be in the drop-down list of options for either the component record or the file previewer.
3. Select **Update File Data**.
4. From the module, select **Remerge Data**.

> **Note:** Due to limitations, the only supported remerged merge fields are:
>
> - Regular merge fields
> - Look-up merge fields
> - Related object merge fields
> - Tables with merge fields
>
> This means that conditional merge fields are not supported.
>
> Additionally, any merge fields that were not populated on the initial merge will not populate in a remerge. If you need this data merged, please use the Regenerate option.

## Regenerate Files

Users with permission to delete Google Drive files will have the option to **Regenerate as New File**. These are sharing roles such as **Owner** or **Content Manager**. When a user regenerates a file, a new file will be created in its place, using the base template of the originally merged file. Consequently, the originally merged file will be deleted, and ownership of the newly created file will be transferred to the user who regenerated it. Additionally, any manual updates made to the file will be deleted.

1. Navigate to the **Drive Links** or **Drive File** component on an object record page.
2. **Select the drop-down list** for a merged Google Doc, Slide, or Sheet file. This can be in the drop-down list of options for either the component record or the file previewer.
3. Select **Update File Data**.
4. From the module, select **Regenerate File**.
