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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adaptive Card - Input ...
Power Automate
Answered

Adaptive Card - Input Fields - Data Activator

(0) ShareShare
ReportReport
Posted on by 12

In a Reflex item, we have some alerts configured, when the event is triggered,  we receive this Adaptive cards:

LeoG_0-1715803353910.png


We're trying to send a similar alerts in a chat group, so we create a Flow in power automate to send an Adaptive Card, this is what we have at the moment

LeoG_1-1715803603481.png

As you can see the Resource Average Value is missing, when i try to put this dynamic content (only this field) "@{triggerOutputs()?['body/inputFields']}" in the JSON schema, the card is not sent and the task fails with "bad request" and with this message:

 

 

 

 

{ 
 "error": {
 "code": "InvalidJsonInBotAdaptiveCard",
 "message": "Microsoft.Azure.ProcessSimple.Data.Entities.Exceptions.ProcessSimpleDataException: The specified Teams flowbot adaptive card request is missing or invalid. The tracking Id is '{0}'. ---> Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: d. Path 'body[1].items[2].facts[2].value', line 73, position 40.\r\n at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments)\r\n at Newtonsoft.Json.JsonTextReader.Read()\r\n at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings)\r\n at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options)\r\n at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)\r\n at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)\r\n at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor, CultureInfo cultureInfo, BotAdaptiveCardAtMentions atMentions) in C:\\__w\\1\\s\\src\\processsimple\\Roles\\ProcessSimple.Data\\Components\\AdaptiveCards\\AdaptiveCardBuilder.cs:line 679\r\n --- End of inner exception stack trace ---\r\n at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor, CultureInfo cultureInfo, BotAdaptiveCardAtMentions atMentions) in C:\\__w\\1\\s\\src\\processsimple\\Roles\\ProcessSimple.Data\\Components\\AdaptiveCards\\AdaptiveCardBuilder.cs:line 702\r\n at Microsoft.Azure.ProcessSimple.Web.Common.Validation.BotAdaptiveCard(String card, RequestIdentity senderRequestIdentity) in C:\\__w\\1\\s\\src\\processsimple\\Roles\\ProcessSimple.Data\\Common\\Validation\\BotValidation.cs:line 882" 
 } 
}

 

 

 

 

If i put the schema like this, it works and the card is sent, that's why we assume Input Fields is the dynamic content that is causing a failure

 

 

 

 

 {
 "type": "FactSet",
 "spacing": "Large",
 "facts": [
 {
 "title": "Trigger Time",
 "value": "@{triggerOutputs()?['body/eventTime']}"
 },
 {
 "title": "Resource",
 "value": "@{triggerOutputs()?['body/objectInstanceId']}"
 },
 {
 "title": "Resource Average",
 "value": ""
 }
 ]
 }

 

 

 

 

 Thanks for the help!


Edit 1:

LeoG_0-1715805178402.png

I've notice that the items will be shown as a list, so how can I get into this list and display the value? for example it will be something like

@{triggerOutputs()?['body/inputFields'][internal]} or 
@{triggerOutputs()?['body/inputFields'][0]}
?
Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @LeoG 

     

    Could you pls share the raw sample data that contains decimal value?

     

     

  • LeoG Profile Picture
    12 on at

    @ManishSolanki  sure, this is a sample of the raw data from power BI

    LeoG_0-1715875131760.png

  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Pls share the data from the output of trigger action in flow.

     

     

  • Verified answer
    LeoG Profile Picture
    12 on at

    @ManishSolanki 
    You're refering to this?

    "body": {
            "eventTime": "2024-05-16T11:38:00.0000000Z",
            "eventId": ".....",
            "objectName": "Siteline-CPU-Percentage",
            "objectInstanceId": "Internal",
            "triggerId": "...",
            "triggerName": "Alert Custom",
            "inputFields": {
                "data": "Resource Average",
                "Resource Average": "98.1666666666667"
            },
            "signalTimestamp": "2024-05-16T11:38:00.0000000Z",
            "signalId": "....",
            "triggerVersion": "1",
            "customProperties": {
                "data": "Resource Average",
                "Resource Average": "98.1666666666667"
            }
        }



    EDIT: 

    not working: 

    @{triggerOutputs()?['body/inputFields[Resource Average]']

    solved with:
    @{triggerOutputs()?['body/inputFields/Resource Average']

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard