Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article outlines the steps to create a Google Sheets connection.
Supported authentication types
The Google Sheets connector supports the following authentication types for copy and Dataflow Gen2 respectively.
| Authentication type | Copy | Dataflow Gen2 |
|---|---|---|
| Organizational account | n/a | √ |
Set up your connection for Dataflow Gen2
You can connect Dataflow Gen2 in Microsoft Fabric to Google Sheets using Power Query connectors. Follow these steps to create your connection:
- Check capabilities to make sure your scenario is supported.
- Complete prerequisites for Google Sheets.
- Get data in Fabric.
- Connect to Google Sheets data.
- Check limitations and considerations for any current restrictions.
Capabilities
- Import
Prerequisites
Before you can use the Google Sheets connector, you must have a Google account and have access to the Google Sheet you're trying to connect to.
Get data
To get data in Data Factory:
On the left side of Data Factory, select Workspaces.
From your Data Factory workspace, select New > Dataflow Gen2 to create a new dataflow.
In Power Query, either select Get data in the ribbon or select Get data from another source in the current view.
In the Choose data source page, use Search to search for the name of the connector, or select View more to the right of the connector list to see all the connectors available in Data Factory.
If you choose to view more connectors, you can still use Search to search for the name of the connector, or choose a category to see a list of connectors associated with that category.
Connect to Google Sheets data
To connect to Google Sheets data:
Select Google Sheets from the Power Query Connect to data source page.
In the Google Sheets dialog, enter the URL of the Google Sheet you want to connect to. You can copy this URL from your browser address bar when viewing the sheet.
Select Sign in to sign in with your Google account.
In the Google sign-in window that appears, provide your credentials and allow Power BI to access your Google account.
Once you successfully sign in, select Next.
In the Choose data page, select the sheets you want to load, and then select Transform data to transform the data in Power Query Editor.
Limitations and considerations
This section describes any limitations or considerations of the Google Sheets connector.
Shared drive support
This connector does support connecting to shared drives.
Multiple connections
This connector uses a different ResourcePath for every Google Sheet URL. You'll need to authenticate to every new resource path and URL, but you might not need to sign into Google multiple times if the previous sessions remain active.
Understanding URL parsing
The connector first checks for the signature of the URL, ensuring it starts with https://docs.google.com/spreadsheets/d/. The connector then parses the Google Spreadsheet ID from the URL to include in the Google Sheets API call. The rest of the URL isn't used. Each Google Sheet connection is tied to the submitted URL, which will act as the ResourcePath.
Set up your connection in a pipeline
Data Factory in Microsoft Fabric doesn't currently support Google Sheets in pipelines.