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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Posting a teams messag...
Power Automate
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

Categories:
I have the same question (0)
  • BronnieBrookes Profile Picture
    8 on at

    seems the problem is related to the adaptive Card Step?

  • v-litu-msft Profile Picture
    on at

    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

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


  • v-litu-msft Profile Picture
    on at

    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

    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
    }
    }
    ]
    }
    }

  • BronnieBrookes Profile Picture
    8 on at

    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": ""
    }
    ]
    }
    ],
    }

  • v-litu-msft Profile Picture
    on at

    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.

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard