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 / Using the new Post ada...
Power Automate
Unanswered

Using the new Post adaptive card in a chat or channel, I get an error message when I include a Card Type Id 'Environment id is null or empty'

(0) ShareShare
ReportReport
Posted on by 29

In a manually triggered flow, the following fails if there is a Card Type Id in the "Post adaptive card in a chat or channel" step. Is there a way to fix it? I've tried posting to a user, group chat, channel, alert or not, it fails with the same error. 

sbitaxi_0-1666206720880.png

  • Post as: Flow bot
  • Post in: Chat with Flow bot
  • Recipient: myself, at the moment
  • Adaptive card: (sample from Microsoft Learn "create your first adaptive card")
  • Card Type Id: MyCardType
  • Is Alert: Yes or No, doesn't matter

 

{
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "type": "AdaptiveCard",
 "version": "1.0",
 "body": [
 {
 "type": "TextBlock",
 "text": "Poll Request",
 "id": "Title",
 "spacing": "Medium",
 "horizontalAlignment": "Center",
 "size": "ExtraLarge",
 "weight": "Bolder",
 "color": "Accent"
 },
 {
 "type": "TextBlock",
 "text": "Header Tagline Text",
 "id": "acHeaderTagLine",
 "separator": true
 },
 {
 "type": "TextBlock",
 "text": "Poll Header",
 "weight": "Bolder",
 "size": "ExtraLarge",
 "spacing": "None",
 "id": "acHeader"
 },
 {
 "type": "TextBlock",
 "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vestibulum lorem eget neque sollicitudin, quis malesuada felis ultrices. ",
 "id": "acInstructions",
 "wrap": true
 },
 {
 "type": "TextBlock",
 "text": "Poll Question",
 "id": "acPollQuestion"
 },
 {
 "type": "Input.ChoiceSet",
 "placeholder": "Select from these choices",
 "choices": [
 {
 "title": "Choice 1",
 "value": "Choice 1"
 },
 {
 "title": "Choice 2",
 "value": "Choice 2"
 },
 {
 "title": "Choice 3",
 "value": "Choice 3"
 }
 ],
 "id": "acPollChoices",
 "style": "expanded"
 }
 ],
 "actions": [
 {
 "type": "Action.Submit",
 "title": "Submit",
 "id": "btnSubmit"
 }
 ]
}

 

 

Categories:
I have the same question (0)
  • Verified answer
    sbitaxi Profile Picture
    29 on at

    I believe I have just solved this. The problem may have been with the connector attached to the Teams > Post an adaptive card in a chat or a channel. I added a new connection from the flow step and it now works.

    sbitaxi_0-1666290230965.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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard