---
title: "Generating Files - Appiphony"
url: "https://appiphony.com/docs/drive-connect/features/document-generation-legacy/document-generation/generating-files"
---

# Generating Files

The Document Generation feature automates the process of inserting Salesforce data into a Google Doc, Slide, and Sheet. This eliminates mistakes caused by miskeying data or copying and pasting incorrect information, allowing you to create accurate and robust documentation in a matter of minutes.

1. Access the record where you want to generate a file.
2. Navigate to the **Drive Links** component.
3. Select **New.**
4. Select **File from Template.**
5. Select the template(s) from the template picker.
6. (Optional) Set whether the generated file(s) should be linked to the Salesforce record.
7. Select a destination option from the dropdown:
   - When selecting the **Select existing folder…** option, click the pencil icon to open the picker and select the destination folder.
   - When selecting the **Create new folder…** option, enter a folder name, click the pencil icon to open the picker, and select the parent folder.
8. (Optional) If you’ve selected an existing folder from the picker or created a new folder, uncheck the **Link destination folder to this record** checkbox unless you also want the folder linked to the record.
9. Click **Merge**; once the file or files are merged, you will receive a success message, and the file will be linked to the Salesforce record.

> ***Note:*** Generating a document merges current Salesforce data into a predefined template. This creates a ContenDocumentLink, and a Drive Link while saving the generated file to your Google Drive.
