Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Posting a teams message failing- no error messages

(0) ShareShare
ReportReport
Posted on by 8

Hi,

I have created a flow and used a "Post an adaptive Card as the Flow Bot to a Channel" with @mentions. the only problem is that it is giving me a bad request error.

BronnieBrookes_0-1602133268988.png

 


I have also gone ahead and removed the @mention and created a basic step with "Post an adaptive Card as the Flow Bot to a Channel" and this is failing as well so it is not the @mention step. the error indicated that it is the condition but the first step in the condition is not failing?

 
 
 
 
 

2020-10-08_16-01-27.jpg

  • v-litu-msft Profile Picture
    on at
    Re: Posting a teams message failing- no error messages

    Hi @BronnieBrookes,

     

    There are some format errors. This is my modified version. You can try it:

    {
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
    {
    "type": "TextBlock",
    "text": "New Project Approved",
    "size": "ExtraLarge",
    "weight": "Bolder",
    "color": "Good",
    "horizontalAlignment": "Center"
    },
    {
    "type": "TextBlock",
    "text": "group name"
    },
    {
    "type": "TextBlock",
    "text": "Name: @{items('Apply_to_each_2')?['TicketNumber']}/@{outputs('Update_item_New_Approve')?['body/Company/Value']}"
    },
    {
    "type": "ActionSet",
    "actions": [
    {
    "type": "Action.OpenUrl",
    "title": "READ ME NOW!!!",
    "url": "@{items('Apply_to_each_2')?['{Link}']}"
    }
    ]
    },
    {
    "type": "ActionSet",
    "actions": [
    {
    "type": "Action.OpenUrl",
    "title": "READ ME NOW!!!",
    "url": "www.google.com"
    }
    ]
    }
    ]
    }

     

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

  • BronnieBrookes Profile Picture
    8 on at
    Re: Posting a teams message failing- no error messages

    and this. both are giving me the same result so I a basic one I have run

     

     

    {
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
    {
    "type": "TextBlock",
    "text": "New Project Approved",
    "size": "ExtraLarge",
    "weight": "Bolder",
    "color": "Good",
    "horizontalAlignment": "Center"
    },
    {
    "type": "TextBlock",
    "text": "group name"
    },
    {
    "type": "TextBlock",
    "text": "Name: @{items('Apply_to_each_2')?['TicketNumber']}/@{outputs('Update_item_New_Approve')?['body/Company/Value']}"
    },
    {
    "type": "ActionSet",
    "actions": [
    {
    "type": "Action.OpenUrl",
    "title": "READ ME NOW!!! ,
    "url": "@{items('Apply_to_each_2')?['{Link}']}"
    }
    {
    "type": "ActionSet",
    "actions": [
    {
    "type": "Action.OpenUrl",
    "title": "READ ME NOW!!! ,
    "url": ""
    }
    ]
    }
    ],
    }

  • BronnieBrookes Profile Picture
    8 on at
    Re: Posting a teams message failing- no error messages

    I have tried this

    {
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
    {
    "type": "TextBlock",
    "text": "New Project Approved",
    "size": "ExtraLarge",
    "weight": "Bolder",
    "color": "Good",
    "horizontalAlignment": "Center"
    },
    {
    "type": "TextBlock",
    "text": "<at>group name</at>"
    },
    {
    "type": "TextBlock",
    "text": "Name: @{items('Apply_to_each_2')?['TicketNumber']}/@{outputs('Update_item_New_Approve')?['body/Company/Value']}"
    },
    {
    "type": "ActionSet",
    "actions": [
    {
    "type": "Action.OpenUrl",
    "title": "READ ME NOW!!! ,
    "url": "@{items('Apply_to_each_2')?['{Link}']}"
    }
    {
    "type": "ActionSet",
    "actions": [
    {
    "type": "Action.OpenUrl",
    "title": "READ ME NOW!!! ,
    "url": ""
    }
    ]
    }
    ],
    "msteams": {
    "entities": [
    {
    "type": "mention",
    "text": "<at>Group name</at>",
    "mentioned": {
    "id": "8:orgid:group ID",
    "name": "Group Name
    }
    }
    ]
    }
    }

  • v-litu-msft Profile Picture
    on at
    Re: Posting a teams message failing- no error messages

    Hi @BronnieBrookes,

     

    It means the message body, please shield personal information:

    Screenshot 2020-10-12 170445.jpg

     

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

  • BronnieBrookes Profile Picture
    8 on at
    Re: Posting a teams message failing- no error messages

    I am not sure what you mean by adaptive card instance?


  • v-litu-msft Profile Picture
    on at
    Re: Posting a teams message failing- no error messages

    Hi @BronnieBrookes,

     

    It is an error is related to the adaptive Card Step, could you please share the adaptive card instance? It will help us troubleshoot.

     

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

  • BronnieBrookes Profile Picture
    8 on at
    Re: Posting a teams message failing- no error messages

    seems the problem is related to the adaptive Card Step?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow