web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Post an adaptive card ...
Power Automate
Answered

Post an adaptive card in a teams channel with a "reply via mail option"?

(0) ShareShare
ReportReport
Posted on by 16

hey people,

first time posting here in the Power Automate forum. Hope you can help me out.

 

I have created a flow that's triggered via a HTTP request (a form filled in on our WordPress website) where parents of our students request help with their ELS (Electronic Learning System) account.

 

My idea is to post an adaptive card with the details they fill in on the webform and add a reply button to the adaptive card that allows us to send an email to the person in question with the resolution of their problem (most cases a new password).

 

I'm as far as getting the adaptive card to show up in our Teams channel but have no idea how to start to get that "Reply" button in there as well.

 

Hope this is even possible so looking forward to the replies!

 

So far, this is my JSON to get the adaptive card in Teams:

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "@{triggerBody()?['5']}",
            "id": "Title",
            "spacing": "Medium",
            "horizontalAlignment": "Center",
            "size": "ExtraLarge",
            "weight": "Bolder",
            "color": "Accent"
        },
        {
            "type": "TextBlock",
            "text": "@{triggerBody()?['1.3']} @{triggerBody()?['1.6']} heeft een probleem met de Smartschool-co-account van @{triggerBody()?['7.3']} @{triggerBody()?['7.6']} uit klas @{triggerBody()?['8']}: @{triggerBody()?['9']}",
            "id": "acInstructions",
"wrap": true
        }
    ]
}

 

(All the triggerbody entries are the fields I capture from the webform)

Categories:
I have the same question (0)
  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Hi

    Adaptive Cards declaration include an 'actions' section, so you declare buttons and related options: OpenURL, Submit, ShowCard...

    As far as I know, PA Flow currently supports Submit events on new action blocks recently released for Microsoft Teams Connector, otherwise you will probably have to rely on OpenURL pointing to a secondary Flow, please note you could face security issues by using this second approach

    Hope this helps

  • hansswolfs Profile Picture
    16 on at

    Sorry for the late reply @efialttes but it's been very busy here.

     

    I went for the "Create an adaptive card in Teams and wait for response" instead then and when the Submit button in Teams is clicked, PA executes a "Send a mail from a shared mailbox" step to send the mail.

     

    I'm having another problem though... In the adaptive card, there's an input field ("GebruikersCorr") to confirm the user's username together with all the details coming from the HTTP request:

     "type": "AdaptiveCard"
     "body": [
     {
     "type": "TextBlock",
     "text": "Probleem met Smartschool-account",
     "id": "Title",
     "spacing": "Medium",
     "horizontalAlignment": "Center",
     "size": "ExtraLarge",
     "weight": "Bolder",
     "color": "Accent"
     },
     {
     "type": "TextBlock",
     "text": "Aanvrager: @{variables('aanvrager')} ( @{variables('email_aanvrager')} )",
     "id": "aanvrager1",
     "wrap": true
     },
     {
     "type": "TextBlock",
     "text": "Gegevens kind: @{variables('kind')} uit klas @{variables('klas')}",
     "id": "Gegevens kind",
     "wrap": true
     },
     {
     "type": "TextBlock",
     "text": "Probleem: @{variables('probleem')}",
     "id": "Probleem",
     "wrap": true
     },
     {
     "type": "TextBlock",
     "text": "Controleer de gebruikersnaam"
     },
     {
     "type": "Input.Text",
     "id": "GebruikersnaamCorr",
     "placeholder": "@{variables('gebruikersnaam')}"
     }
     ],
     "actions": [
     {
     "type": "Action.Submit",
     "title": "Opgelost - verstuur email"
     }
     ]

     But for some reason whenever I put the HTTP Request fields in the adaptive card step (either straight from the HTTP Request field or either via variables (like the code posted)), I can't enter the "GebruikersCorr" field in the email step... The fields from the "Create and adaptive card" step just won't show up in the dynamic content list...

     

    Is it possible the JSON has problems with the "@variable" that's created when inserting the dynamic content fields?

  • efialttes Profile Picture
    14,756 on at

    Hi

    Did my first answer solve the initial issue?

    If so, my humble suggestion is:

    1.-Mark this topic as "Solved" by clicking "Accept as a solution". THis way others with the same problem can find a solution faster

     

    Flow_AcceptSolution.png

    2.- Open a new thread for your next question, following the policy: 'One Question, one post'. This way you have more chances to attrack attention for superusers that are seeking for unanswered topics.

    3.- (OPTIONAL) Click on 'Thumbs up' in any of my answers in this current thread if you found them valuable.

     

    Flow_thumbsUp.png

    Even though this 3rd step is OPTIONAL, please remember it is the cheapest, easiest way to say thanks to somebody that simply tried to help. And just between you and me, everytime an inspiring answer receive a kudo in this community, an ewok escapes from The Emperor menace 

     

    If you finally open a new thread describing this new problem, please add my nickname @efialttes so I will inmediately receive an alert.

    Thanks!

     
  • hansswolfs Profile Picture
    16 on at

    okido! Will open a new thread with a tag.

     

    Cheers already!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard