cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
007jamesbond
Frequent Visitor

getting Adaptive Cards to display in Teams Channel

Hi all---

 

I am stuck, i could use some help.

 

I keep getting a Adaptive card not defined error etc. On adaptivecards.io my adaptive card looks fine, so i dont know why it keeps failing. 

 

{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "size": "Medium",
                    "weight": "Bolder",
                    "text": "Action items for Offboarding latest:"
                },
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "weight": "Bolder",
                                    "text": "From: XX",
                                    "wrap": true
                                }
                            ],
                            "width": "stretch"
                        }
                    ]
                }
            ]
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "New Offboarding Form Filled Out. @{body('Get_response_details_2')?['r256c256149194f7cb052e5cadb2d60d5']} has been terminated. Please complete your tasks ASAP.",
                    "wrap": true
                },
                {
                    "type": "FactSet",
                    "facts": [
                        {
                            "title": "Employee:",
                            "value": "@{body('Get_response_details_2')?['r256c256149194f7cb052e5cadb2d60d5']}"
                        },
                        {
                            "title": "Type of Employment:",
                            "value": "@{body('Get_response_details_2')?['r80c6fd5e276946cd9c3147890e3ec350']}"
                        },
                        {
                            "title": "Today's Date:",
                            "value": "@{body('Get_response_details_2')?['rbbf61cd6667341db8ea6164a6f5ffb1f']}"
                        },
                        {
                            "title": "Requested By:",
                            "value": "@{body('Get_response_details_2')?['r4be02b22be2649daa1d2d09fd93bef11']}"
                        },
                        {
                            "title": "Location Worked At:",
                            "value": "@{body('Get_response_details_2')?['rdd954eecf6dc4e37b6763947129fabef']}"
                        },
                        {
                            "title": "Department:",
                            "value": "@{body('Get_response_details_2')?['ra74181d5f1c04eaa881aa81e033e80b4']}"
                        },
                        {
                            "title": "Forward future emails to:",
                            "value": "@{body('Get_response_details_2')?['r2742ddbfd0d44e4bac0fa334bf2a4946']}"
                        },
                        {
                            "title": "What to do with Emails:",
                            "value": "@{body('Get_response_details_2')?['r752f82bff328491584ea11ad2178a77e']}"
                        },
                        {
                            "title": "Did Employee have access to dual systems:",
                            "value": "@{body('Get_response_details_2')?['re62544f11aa94a1eb74e9299e485aced']}"
                        },
                        {
                            "title": "Date to remove access:",
                            "value": "@{body('Get_response_details_2')?['r71b25542198842a2a358a3b0b1b63c17']}"
                        },
                        {
                            "title": "Comments:",
                            "value": "@{body('Get_response_details_2')?['re9cfe00295bb4aa79d13d5106ce6e670']}"
                        },
                        {
                            "title": "Approved by:",
                            "value": "@{body('Get_response_details_2')?['rc9340b0133224be8b7ae6643b6fda5cf']}"
                        },
                        {
                            "title": "Access to be removed from:",
                            "value": "@{body('Get_response_details_2')?['r6562b78457f84644b0cfff5399ab2e6b']}"
                        }
                    ]
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.0"
}

 

thank you ahead of time for your assistance.

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

Hi @007jamesbond ,

 

How did you define your adaptive card?

 

Please check the following doc on Adaptive cards for Microsoft Teams:

https://flow.microsoft.com/en-us/blog/adaptive-cards-for-microsoft-teams-microsoft-flow-us-governmen...

 

Adaptive cards use a common JSON format that you can use across many different channels. However, you don’t need to author this JSON by hand, you can use the rich drag-and-drop designer on the Adaptive Cards website to build your card:

https://adaptivecards.io/designer/

 

Best regards,

Mabel          

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

sorry for the late reply. i actually used theJSON designer....and it still wouldnt take.

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,349)