Share via

Issues trying to use existing MessageCard payload in Workflow

Matherly, Toby 10 Reputation points
2026-03-17T12:30:03.2366667+00:00

After following the steps provided here the workflow is failing when sending existing MessageCard payload. This payload is currently working using the old webhook in teams. Teddie-D suggested starting a new question with the details.

https://community.powerplatform.com/forums/thread/details/?threadid=915c0cfb-d5eb-f011-8544-000d3a554a74

Steps tried: Following instructions from above link

Generated workflow code: I attached the export of the flow. I had to change the ext from zip to txt for it to work.

Exact error message:

Action 'Post_card_in_a_chat_or_channel_1' failed: Microsoft.Azure.ProcessSimple.Data.Entities.Exceptions.ProcessSimpleDataException: The specified Teams flowbot adaptive card request is missing or invalid. The tracking Id is '{0}'. ---> AdaptiveCards.AdaptiveSerializationException: Property 'type' must be 'AdaptiveCard'

at AdaptiveCards.AdaptiveCardConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)

at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)

at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)

at Newtonsoft.Json.JsonConvert.DeserializeObjectT

at AdaptiveCards.AdaptiveCard.FromJson(String json)

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 930

--- End of inner exception stack trace ---

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 934

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 960

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs


3 answers

Sort by: Most helpful
  1. Matherly, Toby 10 Reputation points
    2026-03-17T14:49:55.3833333+00:00

    JSON Payload: (I pulled this from the error in workflow editor. I assume this is the payload? If not, how do I get it?)
    {

    "host": {
    
        "connectionReferenceName": "shared_teams",
    
        "operationId": "PostCardToConversation"
    
    },
    
    "parameters": {
    
        "poster": "Flow bot",
    
        "location": "Channel",
    
        "body/recipient/groupId": "[Moderator note: personal info removed]",
    
        "body/recipient/channelId": "[Moderator note: personal info removed]",
    
        "body/messageBody": "{\"icon_url\":\"\",\"channel\":\"\",\"username\":\"\",\"text\":\"Notification Test 8 https://ansiblegateway.xxx.com\"}"
    
    }
    ```}  
      
    Are you using a built-in template like *"Send webhook alert to a channel"*? << Using the built-in template as instructed in the link I shared in the question.
    
    Are you receiving the error *"Property 'type' must be 'AdaptiveCard'"* directly within the Ansible/AWX logs, or do you see it in the Teams Workflow run history?  <<< Shows successful on ansible side from the UI test.  I see the error on Workflow side in run history.  Pasted the error message from workflow run in original question.  
      
    Can you confirm if you are using the built-in "Mattermost" notification type in Ansible Automation Platform, or if you are using a generic "Webhook" type?  <<< Using Mattermost.  Just change the webhook URL for testing.  Still working on the legacy webhook url as pasted above. 
    
    
    1 person found this answer helpful.

  2. Kudos-Ng 15,050 Reputation points Microsoft External Staff Moderator
    2026-03-17T13:26:53.58+00:00

    Hi Matherly, Toby,

    I have reviewed the link you attached and the suggested answer provided. Based on testing and verified technical behavior, here is a clarification on how Teams handles legacy MessageCard payloads:

    1. Built-in Teams Workflow Templates

    If you use the built-in Teams template "Send webhook alert to a channel", it does support legacy MessageCard JSON payloads. These specific templates include backward compatibility to help users migrate from old Office 365 Connectors without changing their code. However, even in these templates, button rendering is still not supported for legacy MessageCard. If your card has buttons, they will not render or may cause the card to fail.

    2. Custom Power Automate Actions

    If you are using a custom flow with the standard "Post card in a chat or channel" action, it will fail with your legacy payload. This action expects a modern Adaptive Card (type: AdaptiveCard). It does not recognize the legacy "@type": "MessageCard" format, which results in the error: Property 'type' must be 'AdaptiveCard'.

    Since buttons and interactive elements are only supported in the Adaptive Card format, Microsoft provides tools to help you transform your payloads: Message Card to Adaptive Card Transformation

    I hope this distinction helps you choose the right path for your workflow.

    Reference: Retirement of Office 365 connectors within Microsoft Teams


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".         

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  3. Luis Torres 0 Reputation points Microsoft Employee
    2026-03-17T18:21:30.85+00:00

    Hi Matherly, Toby

    Would you be able to share the Message Card payload?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.