Creating Automations
The Drive Connect app comes packaged with the Automate Drive flow action, which can be added to Record-Triggered flows to perform operations when records are created or updated. Schedule-triggered flows with object conditions configured can also use this flow action to perform operations on a batch of records. To enable Drive Connect Automation, ensure the Marketplace App is installed and the Automated Process User is configured. For detailed steps on this process, see the Setup and Configure Drive Connect Automation article.
Note: Operations defined in the Automate Drive action are subject to Google API usage limits. When using the action for Schedule-Triggered flows, we recommend configuring your filter conditions to limit batch sizes to 100 records or less in order to avoid failures for actions that include multiple operations.
- Navigate to Setup > Process Automation > Flows and click New Flow.
- This will open the Flow Builder in a new tab. You can choose to create a flow from a template or start from scratch; here, we’ll build a simple flow from scratch. Click Next to continue.

- Select Record-Triggered Flow (or Schedule-Triggered Flow for automating folders, generating documents, or uploading files in bulk.) and click Next.
- You’ll be prompted to select the Salesforce object that triggers the flow and configure the conditions under which the flow will be triggered.
For more information on building out your flow, see the Salesforce documentation on Defining Conditions in a Flow. - In the Flow Layout panel, hover over the node in your Flow where you’d like to add a Drive Connect automation action and click on the + button that appears.

- In the Add Element panel that appears, select Action.

- In the Search Actions panel that appears at right, search for and select the Automate Drive action (apex-driveconnect__automateDrive).
- Fill out the required fields for the Label and API Name, then select an option from the Operation picklist.
When selecting Drive Operations, the following parent-level options are available:
- Click Save.
- Enter the required fields for Flow Label and Flow API Name, and click Save.
- Click Activate.
- For a Record-Triggered Flow, go back to your Salesforce object/record and trigger your flow. Once triggered, the component displays a state of automation in progress.
Note: The Automate Drive action performs operations asynchronously. A retry mechanism is built into the action to support multiple concurrent operations on the same record. If a failure occurs, Queueable Apex calls a Future Method to wait and retry the operations for a maximum of five times before they are deemed unsuccessful and terminated.
Adding Sibling Operations
Drive Connect Automation supports adding multiple sibling operations. These operations are considered same-level operations to any existing operation in your flow. You can add a sibling operation by selecting the Add Drive Operation button for parent-level operations (or select Add Child Operation for same-level child operations).
Note: If adding multiple sibling operations, the automation will run sequentially in the order they are created/listed in the Drive Operations builder.