Canvas Sigma enables the users to connect with the Google sheet data using Connectors in Canvas Sigma Studio.
Prerequisites
To create Google sheet connections, make sure that the provided GSheet_jars folder is present within the ModelHouse Sigma and the Studio war.
Sample File Location for Canvas Sigma Studio in Tomcat Server:
<Tomcat-Installed-Folder> \webapps\expertctstudio\WEB-INF\lib
Sample File Location for ModelHouse Sigma in Tomcat Server:
<Tomcat-Installed-Folder> \webapps\modelhouse\WEB-INF\lib
...
- Go to the following URL link:
https://console.developers.google.com
- Click Enable APIS and Services.
- Search for Google Sheets API in the search box and select it.
- Click Manage.
- Click Credentials option from the menu on the left-hand side of the page.
- Click Create Credentials and select OAuth Client ID from the drop-down list.
- Click the Application Type drop-down and select Web Application.
- Enter the web application name in Name field. Here, Web client is provided as the name.
- Click ADD URI in Authorized JavaScript origins field and provide https://console.developers.google.com as the URI.
- Click ADD URI in Authorized redirect URIs field and provide https://developers.google.com/oauthplayground as the URI.
- Click Create.
- Make note of the Client ID and the Client Secret information from the pop up that appears once the OAuth client is created.
...
Perform the following steps in order to create a connection and a datasource for the Google sheet:
- In Canvas Sigma Studio, click Create > ConnectorsManage > Connection.
The Connectors Create New Connection page appears as shown in the following screenshot: - Click OTHERS and select the Google Sheets.
- Enter a unique name for the connection in the Connection Name field.
- Provide the obtained client ID in Client ID field.
- Enter the obtained client secret in Client Secret field.
- Similarly, provide the access and the refresh tokens in their respective fieldsthe Access Token and Refresh Token fields respectively.
Click Submit to save the connection.
Warning When you try to exit the Connectors screen, before saving the configured Google Sheets connection, a warning pop-up message appears, as shown in the following screen shot:
- Click Cancel, if you do not want to exit the Connectors screen.
- Click Ok, if you want to exit the Connectors screen.
A success message for creating a connection appears as shown in the following screenshot:- Click Ok.
- Now, right-click the created connection and select Create Data Source.
Click the Data Source icon on the existing Google Sheets connection.
The Create Request page appears. - In the Create Request page, enter a unique data source name in the Data Source Name field.
Provide the Google spread sheet ID in Spreadsheet ID field.
Note You can identify the spread sheet ID from your Google sheet URL.
- Provide the spread sheet range in Range field.
Enter the column name and its ID on the Column Name and Column ID field. Here, Name and Task is are provided as the column name Column Name and column Column ID.
Note Click plus ( ) icon to add column(s) and minus ( ) icon to delete the column(s).
Click Save.
Warning When you try to exit the Data Source screen, before saving the configured Google Sheets data source, a warning pop-up message appears, as shown in the following screen shot:
- Click Cancel, if you do not want to exit the Data Source screen.
- Click Ok, if you want to exit the Data Source screen.
A success message for creating a datasource appears as shown in the following screenshot:- Click Ok.