cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
romanog
Regular Visitor

Cloud Flow using Adaptive Card Templating to a Teams channels with integration to a Custom Connector

I'm working a on proof of concept that integrates with a 3rd party system using a Power Automate Custom Connector to retrieve a json array of objects that I want to push as a list/table to a Teams Channel. 

 

I'm attempting to accomplish this using Adaptive Card Templating triggered by a Recurring Cloud Flow.    The json response from the Custom Connector is:

 

{"tasks":[{
"name":"Review Draft",
"receivedate":"04/29/2022",
"duedate":"05/02/2022"
},
{
"name":"Create Draft",
"receivedate":"05/02/2022",
"duedate":"05/04/2022"
}]}

 

My Adaptive Card Template is:

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.3",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "stretch",
                    "items":[
                        {"type": "TextBlock",
                         "text": "${name}"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items":[
                        {"type": "TextBlock",
                         "text": "${duedate}"
                        }
                    ]
                }
            ],
            "$data": "${body.tasks}"
        }
    ]
}

 

Using the Adaptive Cards Designer and the example json I get the desired behavior:

romanog_0-1651543102871.png

However when testing this Flow:

romanog_1-1651543190278.png

The Teams channel output is:

romanog_2-1651543265340.png

For debugging I created another Channel Msg that wrote the Response Json object from the GetInboxTasks custom connector returns which is the same as the example Json above.  This link about Adaptive Card Support may indicate that what I'm trying to do is not supported.   Any ideas?

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,885)