Skip to main content

Official Support Articles

Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save $300 before February 6: REGISTER NOW!

Google Sheets - How to get started with Google Sheets in Automations

cancel
Showing results for 
Search instead for 
Did you mean: 
Marius_Nuca
Support
Support

Google Sheets - How to get started with Google Sheets in Automations

Attachments

This article gives an overview of the available blocks in the Google Sheets connector in Qlik Application Automation. It will also go over some basic examples of creating a new spreadsheet, adding new sheets to it, adding some information to the sheet as well as removing information from it.

You will find the mentioned example attached to this article in JSON format so you can upload it to your workspace and get started with it easily.

This connector supports operations to manage spreadsheets, adding/removing sheets from spreadsheets, manipulating sheet data, and a few other support operations.

Authentication for this connector is based on the oAuth2 Protocol. 

Let's start with the example prepared:

  1. Create an automation;
  2. From the left menu, select the Google Sheets connector;
  3. Drag and drop the "Create Spreadsheet" block and fill in a title for the spreadsheet we will be adding
  4. Let's go ahead and drag and drop the "Add Sheet to Spreadsheet" block and fill in the input parameters. (input parameter for the spreadsheet id can be filled manually by clicking the input and using the do lookup function for adding a new sheet to an existing spreadsheet or filled in from the output of the block before this one like shown in the picture)

    GS - Add sheet.PNG

  5. Next step in our example was to append a couple of rows and columns to our newly added spreadsheet in one go by using the 'Append Rows to Sheet' block:

    GS - append row to sheet.PNG
    For text values you can encase them between double quotes and for number you can simply send them as they are. The end result should look like the following picture in you document: 

    GS - new rows.PNG
  6. Now in order to get the data from the spreadsheet we've used the block  'Get data from sheet with Headers' and the resulting output from that block will be a list object ( if there were multiple lines ) with the headers used as keys of the object and the values taken from the following lines.
  7. Lastly we used the 'delete rows' block in order to delete 1 line from our sheet. Just as you can see on the block description, you are not allowed to delete all rows in a sheet.

    GS - delete rows.PNG

  8. In the presented JSON example, you will notice a disabled 'Delete Spreadsheet' block as well. That block is only available for accounts whose administrator has allowed the app beforehand in their G Suite administration panel, so not every user might have access to that blocks functionality. If you want to delete a spreadsheet and don't have the possibility from our Google Sheet connector, manually deleting the spreadsheets from your account is the only way to do it.

 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

Tags (1)
Labels (2)
Comments
Alejandro-juarez22
Contributor II
Contributor II

Hello, is it possible to send the sheet by email?

AfeefaTk
Support
Support

Hi @Alejandro-juarez22 

Unfortunately, It's not possible to send the google sheet as an attachment via email using QAA

We can achieve it using Microsoft Excel files where we can convert excel report to pdf and send it as an attachment using Send Mail block

For more info refer to the below article

https://community.qlik.com/t5/Official-Support-Articles/How-to-convert-Excel-reports-to-PDF-using-Ql...

Hope this helps!

Thanks!

Afeefa TK

 

Version history
Last update:
‎2022-11-23 02:28 AM
Updated by: