Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!

How to send straight table data to Microsoft Teams as a table using Qlik Automate

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
AfeefaTk
Support
Support

How to send straight table data to Microsoft Teams as a table using Qlik Automate

Last Update:

May 23, 2025 7:14:58 AM

Updated By:

Sonja_Bauernfeind

Created date:

Nov 8, 2024 1:26:13 AM

Attachments

This article provides an overview of how to send straight table data to Microsoft Teams as a table using Qlik Automate.

The template is available on the template picker. You can find it by navigating to Add new -> New automation -> Search templates, searching for 'Send straight table data to Microsoft Teams as a table' in the search bar, and clicking the Use template option.

You will find a version of this automation attached to this article: "Send-straight-table-data-to-Microsoft-Teams-as-a-table.json".

Content:

 

Full Automation

Full Automation.png

Automation structure

The following steps describe how to build the demo automation: 

  1. Add the 'Get Straight Table Data' block from the Qlik Cloud Services connector to get data from the straight table for a specific app to send to the Microsoft Teams channel as a table. Specify the app ID, Sheet ID, and Object ID in the input parameters. You can use the do-lookup functionality to find value for all these parameters. There is a limit of 100,000 records that can be retrieved through the 'Get Straight Table Data' block. This block will not work with other table types.

  2. Add a 'Loop' block to loop over the keys from the 'Get Straight Table Data' block response which acts as the table header. Use the '{getkeys: {$.GetStraightTableData}}' formula in the 'Loop' block. Within the 'Loop' block add the following blocks:

    1. Add an object variable called 'teamsTextBlockObject' to build the header and pass this variable to another list variable called 'cardTableColumn'.

    2. Add another 'Loop' block to loop over all the values for the current key of the straight table. Within the 'Loop' block add the following blocks:

      1. Add a 'Condition' block to check whether the column value is empty or not.

        • If the condition block outcome evaluates to true:

          • Add the 'teamsTextBlockObject' object variable, set the text value as 'NA' since the column value is null/empty, and pass this variable to the 'cardTableColumn' list variable.

        • If the condition block outcome evaluates to false:

          • Add the 'teamsTextBlockObject' object variable, set the text value as the column value of the straight table, and pass this variable to the 'cardTableColumn' list variable.

    3. Add another object variable called 'columnObject' and pass this variable to the 'columns' list variable. These variables are used to build the straight table data into a specific format which is required to build the structure of the team's message as a card attachment.

  3. Add a string variable called 'title' which is used to provide the title to the message.

  4. Add the 'Create Attachment Adaptive Card' block from the Microsoft Teams connector to build the structure for card attachment. Make sure to transform the 'columns' list to JSON text using the JSON formula.

    Create Attachment Adaptive Card.png

  5. Add 'Send Message' block from the Microsoft Teams connector to send straight table data as a table to the Teams channel with the card attachment which was created in the previous block.
    Specify the Team ID and the Channel ID in the input parameters. You can use the do-lookup functionality to find the value of all these parameters. 

    Send Message.png

An example output of the table sent to the Teams channel:

example message output in a table.png

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

Related Content

Environment

  • Qlik Cloud Analytics
  • Qlik Automate
Labels (2)
Comments
DataKnight1
Contributor III
Contributor III

Hi - this looks very interesting!

Is there any video content of seeing how this would be delivered in practice and what the 'art-of-the-possible' is with the 'Adaptive Card'?

Thanks

110
Creator
Creator

This automation would be very helpful for a number of use-cases!

I tried this with the template and plugging in an existing table and wasn't able to get it working out the box.   

Does the user ( aside from adding the app / teams connection / channel etc )  - need to specify each column in the set-up? 

I tried the simpler template "Send straight table data to Microsoft Teams as a message" -though this just produced a set of keys.

110_0-1759502541402.png

 

Is there a plan in the future to encapsulate the loops and variables into a single node?  ( I.E. Export Tabular data to Teams Adaptive card  ) 


Version history
Last update:
‎2025-05-23 07:14 AM
Updated by: