Gmail Data Integration and Synchronization


Gmail data can be integrated and synchronized codeless with various external systems, on premises or in the cloud, using the Layer2 Cloud Connector Enterprise Edition.


Learn on this page how the data integration of Gmail is working with the Layer2 Cloud Connector Enterprise Edition by using the step-by-step screenshot tutorial and reading our important advice and frequently asked questions. Make use of the benefits and features of this data integration tool by trying it out yourself: Free Trial Registration

How it works

In fact, you only need to do the 5 following steps to get your Gmail data integration started.


  • Setup your connection as required: one-way (in this case).
  • Setup your data source, in this case Gmail database.
  • Setup your data target – for example a Microsoft SharePoint list or library.
  • Setup your mapping
  • Start your project!

Gmail step-by-step data integration via the Layer2 Cloud Connector

Use this step-by-step-introduction to get through the whole product and data integration configuration easily. Some steps require a copy-paste task of code snippets. Please follow the recommendations in this introduction closely.

Before you can proceed with the configuration, please be aware that


  • You need an API Account for anabling your desired APIs. To create an account, please visit the Google Developers Page:
  • If you find yourself struggeling with setting up a Google Account and API, you will find an introduction very shortly on our FAQs Pages.
connection configuration in the Layer2 Cloud Connector for Gmail data integration
Connection setup in the Layer2 Cloud Connector
Connection string configuration with the Layer2 Cloud Connector for gmail data integration
Target configuration with the Layer2 Cloud Connector for gmail data integration
Mapping with the Layer2 Cloud Connector for Gmail data integration
Run the GMail data integration via Layer2 Cloud Connector
Data preview for Gmail integration with the Layer2 Cloud Connector
Example of GMail data for a data integration with the Layer2 Cloud Connector
Example: Gmail data in SharePoint after the data integration

Specific Connection settings for your Gmail integration

Please copy and paste this connection string into the designated field like described in Step 2.5 of the step-by-introduction above.

[email protected];



Please enter the following SQL query into the "Select Statement" as well and adjust the placeholder.



SELECT ID, Subject,FullFrom,FullTo,MessageBody, FROM Inbox




Large selection of systems

Benefit from a large and continuously growing list of supported IT Systems and Apps.

Multiple possibilities

Sync your Gmail data one-way locally or cloud-based and use it for migration, backup, or permanent synchronization projects.

High security

There is no access to your corporate data from the internet and no data transfer will occur to 3rd-parties. Logging and alerting are controlled centrally. You have the full control.

Flexible, high-end features

Select your datasets or files using varios codes, enable/disable specific operations, and manage sync options. Use the dynamic columns for detailed configurations and if you want to, extend the features of the product by using C#.

Many data provider included

Use our own customized providers for SharePoint / Office 365, OData, File System, XML, RSS, Exchange, SOAP, Azure, and more. Besides, many vendor-specific or 3rd party ADO.NET data providers are supported as well.

Cost-effective licensing

3 fully-featured product licenses are available: Personal (for one conncetion only), Standard, and Enterprise as our one-stop-shop solution. 

known issues and workarounds

Please take into account our advices and known limitations.


  • If you are installing more APIs from Google, install it all first and then restart your machine. After a new API installation, you may have to restart the machine to get the entries correct and runnable for the PowerShell-Script
  • In older versions of the Layer2 Cloud Connector (7.8-7.20) pop-ups don’t work anymore. If you try to connect to the Google API’s you will get a 500 Error, once the API needs the confirmation from the user account.


1) Credentials:

You must also set the local account to run the service Layer2 Cloud Connector Service. If you already have done this for a google API before, this step would not be necessary. NOTE: If you update your Layer2 Cloud Connector, you must re-enter your credentials in this service.

Run services.msc and find the service Layer2 Cloud Connector Service. Right click \ Properties \ Log On \ This account and set your DOMAIN\User and Password. Apply and restart the service.


2) MaxLength:

First Workaround: In that case you can try to set a custom parameter into your connection string:

The default value from this property is 2000. You can try changing to a higher value: Other=DefaultColumnSize=5000


If you wish a size higher than 5000, please contact [email protected] for a workaround.

Ready to go next steps?

Icon for Product Regsitration - Layer2 leading solutions

Register for free download.

Keep your Gmail data in sync. Download and try today the Layer2 Cloud Connector.

Icon for Layer2 Solutions Finder- Layer2 leading solutions

About the Layer2 Cloud Connector

Get more information about the Layer2 Cloud Connector on the product page.

Contact Us Icon for Layer2 leading solutions

Questions? Contact us.

We are here to help. Contact us and our consulting will be happy to answer your questions.