Events
31 Mar, 23 - 2 Apr, 23
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
APPLIES TO:
Azure Data Factory
Azure Synapse Analytics
Tip
Try out Data Factory in Microsoft Fabric, an all-in-one analytics solution for enterprises. Microsoft Fabric covers everything from data movement to data science, real-time analytics, business intelligence, and reporting. Learn how to start a new trial for free!
This article outlines how to use Data Flow to transform data in Google Sheets (Preview). To learn more, read the introductory article for Azure Data Factory or Azure Synapse Analytics.
Important
This connector is currently in preview. You can try it out and give us feedback. If you want to take a dependency on preview connectors in your solution, please contact Azure support.
This Google Sheets connector is supported for the following capabilities:
Supported capabilities | IR |
---|---|
Mapping data flow (source/-) | ① |
① Azure integration runtime ② Self-hosted integration runtime
For a list of data stores that are supported as sources/sinks, see the Supported data stores table.
Use the following steps to create a Google Sheets linked service in the Azure portal UI.
Browse to the Manage tab in your Azure Data Factory or Synapse workspace and select Linked Services, then select New:
Search for Google Sheets (Preview) and select the Google Sheets (Preview) connector.
Configure the service details, test the connection, and create the new linked service.
The following sections provide information about properties that are used to define Data Factory and Synapse pipeline entities specific to Google Sheets.
The following properties are supported for the Google Sheets linked service:
Property | Description | Required |
---|---|---|
type | The type property must be set to GoogleSheets. | Yes |
apiToken | Specify an API token for the Google Sheets. Mark this field as SecureString to store it securely. Or, you can reference a secret stored in Azure Key Vault. | Yes |
Example:
{
"name": "GoogleSheetsLinkedService",
"properties": {
"type": "GoogleSheets",
"typeProperties": {
"apiToken": {
"type": "SecureString",
"value": "<API token>"
}
}
}
}
When transforming data in mapping data flow, you can read resources from Google Sheets. For more information, see the source transformation in mapping data flows. You can only use an inline dataset as source type.
The below table lists the properties supported by Google Sheets source. You can edit these properties in the Source options tab.
Name | Description | Required | Allowed values | Data flow script property |
---|---|---|---|---|
SpreadSheet ID | The spreadsheet ID in your Google Sheets. Make sure the general access of the spreadsheet is set as Anyone with the link. | Yes | String | spreadSheetId |
Sheet name | The name of the sheet in the spreadsheet. | Yes | String | sheetName |
Start cell | The start cell of the sheet from where the data is required, for example A2, B4. | Yes | String | startCell |
End cell | The end cell of the sheet till where the data is required, for example F10, S600. | Yes | String | endCell |
When you use Google Sheets as source type, the associated data flow script is:
source(allowSchemaDrift: true,
validateSchema: false,
store: 'googlesheets',
format: 'rest',
spreadSheetId: $spreadSheetId,
startCell: 'A2',
endCell: 'F10',
sheetName: 'Sheet1') ~> GoogleSheetsSource
For a list of data stores supported as sources and sinks by the copy activity, see Supported data stores.
Events
31 Mar, 23 - 2 Apr, 23
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Code-free transformation at scale with Azure Data Factory - Training
Perform code-free transformation at scale with Azure Data Factory or Azure Synapse Pipeline
Certification
Microsoft Certified: Azure Data Engineer Associate - Certifications
Demonstrate understanding of common data engineering tasks to implement and manage data engineering workloads on Microsoft Azure, using a number of Azure services.
Documentation
Connector overview - Azure Data Factory & Azure Synapse
Learn the supported connectors in Azure Data Factory and Azure Synapse Analytics pipelines.
Configure Azure Blob Storage in a copy activity - Microsoft Fabric
This article explains how to copy data using Azure Blob Storage.
Excel format in Azure Data Factory - Azure Data Factory & Azure Synapse
This topic describes how to deal with Excel format in Azure Data Factory and Azure Synapse Analytics.