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
Authentication and authorization with the Microsoft Excel Connector in Qlik Application Automation works through oAuth2. When a user attempts to connect a Microsoft Excel datasource, the user will be redirected to the Microsoft login page where a user is prompted to give permission for Qlik Application Automation to access their Office 365 tenant.
The following scopes are being requested by Qlik Application Automation:
The Microsoft Excel connector has blocks available to perform actions on worksheets, data inside worksheets and tables inside worksheets. When working with data, we always recommend to work with tables rather than data on the worksheet due to ease of use.
This block obtains values from an excel file worksheet from a specified range. The following input parameters are used:
The block returns a double nested array. The first level contains a row, the second level contains the value of a column in that row.
The same block also exists for working with tables. Here the start cell and end cell are replaced by a Table ID.
With the block Add Worksheet to Excel File a user can add a new worksheet to an Excel document. It takes the following input parameters:
Using the block Update Rows in Excel Sheet you can specify a range in which you want to overwrite existing data. The following input parameters are required:
Using the block Create Excel Table With Headers a user can create a table in Excel. Using the block Add Table to Excel File Worksheet a user can also create a table without headers. The following input parameters are being requested:
Aside from creating a table, we can also delete is by the use of the Delete Table from Excel File Worksheet block. This requires an item ID, worksheet and Table ID.
Two blocks serve to find a matching row in an Excel Table. These blocks are Find Row in Excel Worksheet Table and Find Rows in Excel Worksheet Table. The first one will only return the first row found, the second one will return all rows found matching these criteria. The following input parameters are required:
Functionality to share workbooks is not included in the Microsoft Excel connector. These actions can be done using the Microsoft Onedrive or Sharepoint connector.
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.
Can you help with "Add Row to Table" block of the Excel connector - I cannot get QAA to write a row to an existing table from a "Get Straight Table Data" block? The documentation is lacking in this area.
The issue with writing data from the "Get Straight Table Data" block with "Add Row to Table" block is that the first block returns a list of Json objects where each object contains the header names as keys and the matching value for that row. The excel block expects a list of just values. You would have to convert the JSON objects to a list element containing only values.
Also answered in: https://community.qlik.com/t5/Qlik-Application-Automation/QAA-Update-Excel-rows-from-Table-Data/td-p...
Is there a way to query for the column headers of a table in Excel?
I want to check the headers I have to ensure I'm matching them with the payload I want to insert/update.
I think I'm looking for something like this endpoint https://learn.microsoft.com/en-us/graph/api/table-list-columns?view=graph-rest-1.0&tabs=http
Hi @crossroadsit ,
We do not yet have a block available for this.
This should be rather simple to implement, so I will add this as an enhancement to the connector and will update this message when that reaches live environments.
Thanks for your suggestion!
Is this still limited to personal OneDrive areas? Or can it be used with any Sharepoint folder?
Hello @Liam_Grant Is this what you are a looking for? How to: Work with Excel files stored on Sharepoint using Qlik Application Automation
If not, I recommend posting your requirements in the Qlik Application Automation forum.
We'll also review the article itself though, so I appreciate your comment!
All the best,
Sonja
I have an Excel file in Azure Blob Storage. When trying to read the contents of the excel file, obviously Drive ID isn't possible because the file is not saved locally.
Is there a workaround where I can enter e.g. the tenent ID for my Azure subscription where the drive ID is and Qlik Sense will be able to adjust?
I feel like only having the option to read from an excel file that is available locally would be quite limiting and not being proactive with current trends.
Thanks for your help.