How to use IBM App Connect with Google Sheets
Google Sheets is a web-based application that you can use with your colleagues to create and modify spreadsheets online. Use IBM® App Connect to connect Google Sheets to other applications, such as a messaging application. For example, when a new row is added to a spreadsheet, you are notified immediately in the messaging application.
App Connect Enterprise as a Service connector
Cloud-managed connector
Local connector in containers (Continuous Delivery release) 11.0.0.10-r1 or later
Local connector in containers (Extended Update Support release)
-
Local connector in containers (Long Term Support release)
Connecting to Google Sheets
To connect App Connect to Google Sheets, you can use the website OAuth 2.0 authorization method. You need to provide an OAuth 2.0 client ID, client secret, and update the authorized redirect URI for your Google application. For more information, see Connecting to a Google application using the website OAuth 2.0 authorization method.
To connect App Connect to Google Sheets, you can also use basic authentication with OAuth credentials. You need to provide an OAuth 2.0 client ID, client secret, access token, and refresh token with selected scopes for Google APIs. For more information, see Getting OAuth client ID, client secret, access token, and refresh token for Google applications.
To connect to Google Sheets from the catalog for the first time, expand Google Sheets, then click Connect. For more information about ways to connect to Google Sheets, see Managing accounts in App Connect.
Before you use the account that is created in App Connect in a flow, rename the account to something meaningful that helps you to identify it. To rename the account on the Catalog page, select the account, open its options menu (⋮), then click Rename Account.
What to consider first
- You can see lists of the available trigger events and actions on the Catalog page of the App Connect Designer.
- The performance of this connector is constrained by the API limits that are imposed by Google. For more information, see Limits and Quotas on API Requests.
- (General consideration) If you are using multiple accounts for an application, the set of fields that is displayed when you select an action for that application can vary for different accounts. In the flow editor, some applications always provide a curated set of static fields for an action. Other applications use dynamic discovery to retrieve the set of fields that are configured on the instance that you are connected to. For example, if you have two accounts for two instances of an application, the first account might use settings that are ready for immediate use. However, the second account might be configured with extra custom fields.
Triggering a flow with the New complete row appended event
- The worksheet that you select must have column names in the first row.
- When you add a row, you must add it to the end of the worksheet.
- The new row must contain data for all the columns that are named in the first row.
Adding Google Sheets as your target application
Processing the data from Retrieve rows action
$GoogleSheetsRetrieverows[[1..$count($GoogleSheetsRetrieverows)-1]]
This
expression returns an array of objects. Events and actions
Google Sheets events
These events are for changes in this application that trigger a flow to start performing the actions in the flow.
- Rows
-
- New complete row appended
- Spreadsheets
-
- New spreadsheet
Google Sheets actions
These are actions on this application that you want a flow to complete.
- Rows
-
- Create row
- Retrieve rows
- Spreadsheets
-
- Create spreadsheet
- Retrieve spreadsheets
- Worksheets
-
- Create worksheet
Examples
- Templates for IBM App Connect Designer. In App Connect on IBM Cloud, you can find examples of using Gmail in App Connect in the Templates gallery.
- Tutorials for App Connect Designer

Create new leads in Marketo by capturing lead names and details in Slack.
Use this template to record your leads in the Slack phone application, record the contact in a Google Sheets spreadsheet (to audit the creation), then create the contact in Marketo. A response is sent through Slack that provides the new Marketo contact ID.

Create an event-driven flow to connect Salesforce to Google Sheets.
Use this template to connect Salesforce to Google Sheets. Every time a new lead is added in Salesforce, details of that lead are added automatically to a row in a Google Sheets spreadsheet.