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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue getting data fro...
Power Automate
Unanswered

Issue getting data from adaptive card

(0) ShareShare
ReportReport
Posted on by

Hello,

 

First of all, apologies if something similar has been posted before, it must've eluded my searches.

 

I am trying to build a solution that sends an email when a new Sharepoint item is created and should capture the replier's answer in another Sharepoint.

My approach is to use Adaptive Cards/ Actionable emails inside Flow. I have successfully captured the reply, however I also need the ID from the original Sharepoint.

I tried several options on this, but I cannot retrieve that info in the Flow that captures the HTTP request.

 

My Adaptive Card(a simplified example):

PNis_0-1604536906880.png

 

 Followed by the flow sending the notification:

PNis_1-1604537133953.png

 

And finally, the flow that captures the reply:

PNis_2-1604537247715.png

 

For testing purposes, the final step is to send an email back to me, with the final results.

Upon running these, the result I get looks like this:

PNis_3-1604537396164.png

With the same value being sent back via email as well.

 

Could someone point out any solutions or perhaps some indications on what I am doing wrong?

Categories:
I have the same question (0)
  • Wesso Profile Picture
    51 on at
    Re: Issue getting data from adaptive card

    I didn't know this is how you post Adaptive Cards in emails so thank you for showing me this!

     

    I did some testing and I think the issue is the '.text'.

    I believe it should be '.value' so in your case: {{blockSharepointId.value}}

     

    Used this as reference: https://docs.microsoft.com/en-us/outlook/actionable-messages/send-via-email

    Give that a try and see if it works.

  • Community Power Platform Member Profile Picture
    on at
    Re: Issue getting data from adaptive card

    Hello Wesso,

     

    Thank you for your reply.

    I forgot to mention in my initial post, but I already tried several variations for that field.

    This is from a previous attempt, same result:

    PNis_0-1604565336152.png

     

    You said you did some testing, can you confirm that on your machine you can get the info from text blocks, in your HTTP request flow?

  • Wesso Profile Picture
    51 on at
    Re: Issue getting data from adaptive card

    Hi @Anonymous sorry only saw this now as I wasn't tagged in your reply.

     

    Below you can find the adaptive card I tested with, and also some screen shots to show the results.

     

    Simple Adaptive Card I have to Test

    <p><br>
    <script type="application/adaptivecard+json">
    {
     "type": "AdaptiveCard",
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "version": "1.0",
     "body": [
    {
     "type": "TextBlock",
     "text": "What's your name?"
     },
     {
     "type": "Input.Text",
     "placeholder": "Type your name",
     "id": "userText"
     },
     {
     "type": "ActionSet",
     "actions": [
     {
     "type": "Action.Http",
     "title": "Say Hello",
     "method": "POST",
     "url": "https://[YOUR WEBHOOK]",
     "body": "{\n \"userInput\": \"{{userText.value}}\"\n}",
     "ignoreInputValidation": true,
     "headers": [
     {
     "name": "Content-Type",
     "value": "application/json"
     },
     {
     "name": "Authorization",
     "value": ""
     }
     ]
     }
     ]
     }
     ]
    }
    </script>
    </p>

     

    Email with Adaptive Card

    Wesso_0-1606185760014.png

     

    Receiving the text input of 'Testing for @Anonymous' entered in the email

    Wesso_1-1606185849033.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard