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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adaptive card not disp...
Power Automate
Unanswered

Adaptive card not displaying action button Show Card

(0) ShareShare
ReportReport
Posted on by 2,563

For some reason when my flow sends a Adaptive card with only one action show card button it will not display the ShowCard button.

If i add another ShowCard then no problem they are displayed.

 

In the adaptive designer it looks correct.

Adaptive card in designerAdaptive card in designerAdaptive card when sentAdaptive card when sentAdaptive card with 2 ShowCard buttons, sent and workingAdaptive card with 2 ShowCard buttons, sent and working

Categories:
I have the same question (0)
  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at
    Re: Adaptive card not displaying action button Show Card

    Hi @JimmyWork 

     

    Could you please share a screen capture of your flow.this seems like issue in JSON some where.

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • JimmyW Profile Picture
    2,563 on at
    Re: Adaptive card not displaying action button Show Card

    @DeepakS 

    This is the json, again it works if i add another ShowCard or in the adaptive card designer.

    But as soon as i send it using email in flow i get the result i posted.

     

     

    {
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "type": "AdaptiveCard",
     "version": "1.0",
     "body": [
     {
     "type": "TextBlock",
     "text": "You have been assigned to ticket: T238989392",
     "weight": "Bolder",
     "size": "Medium"
     },
     {
     "type": "ColumnSet",
     "columns": [
     {
     "type": "Column",
     "width": "auto",
     "items": [
     {
     "type": "Image",
     "url": "https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg",
     "size": "Small",
     "style": "Person"
     }
     ]
     },
     {
     "type": "Column",
     "width": "stretch",
     "items": [
     {
     "type": "TextBlock",
     "text": "Matt Hidinger",
     "weight": "Bolder",
     "wrap": true
     },
     {
     "type": "TextBlock",
     "spacing": "None",
     "text": "Assigned {{DATE(2017-02-14T06:08:39Z, SHORT)}}",
     "isSubtle": true,
     "wrap": true
     }
     ]
     }
     ]
     },
     {
     "type": "TextBlock",
     "text": "The ticket have been placed in your \"My Assigned\"",
     "wrap": true
     },
     {
     "type": "FactSet",
     "facts": [
     {
     "title": "Title",
     "value": "title value"
     },
     {
     "title": "Priority",
     "value": "priority value"
     },
     {
     "title": "Case category",
     "value": "category value"
     },
     {
     "title": "Case type",
     "value": "Case value"
     },
     {
     "title": "Due date:",
     "value": "Due date value"
     }
     ]
     },
     {
     "type": "ActionSet",
     "actions": [
     {
     "type": "Action.ShowCard",
     "title": "Show description",
     "card": {
     "type": "AdaptiveCard",
     "body": [
     {
     "type": "TextBlock",
     "text": "Hello World",
     "wrap": true
     }
     ],
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
     }
     }
     ]
     }
     ]
    }

     

  • JimmyW Profile Picture
    2,563 on at
    Re: Adaptive card not displaying action button Show Card

    Now you can replicate the issue by using what Microsoft suggest.
    https://adaptivecards.io/explorer/Action.ShowCard.html

     

    The ShowCard button will not be displayed, if you do not add another after it, in the designer it will show but not when you send the card

    {
    	"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    	"type": "AdaptiveCard",
    	"version": "1.0",
    	"body": [
    		{
    			"type": "TextBlock",
    			"text": "This card's action will show another card"
    		}
    	],
    	"actions": [
    		{
    			"type": "Action.ShowCard",
    			"title": "Action.ShowCard",
    			"card": {
    				"type": "AdaptiveCard",
    				"body": [
    					{
    						"type": "TextBlock",
    						"text": "What do you think?"
    					}
    				],
    				"actions": [
    					{
    						"type": "Action.Submit",
    						"title": "Neat!"
    					}
    				]
    			}
    		}
    	]
    }

     

     

  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at
    Re: Adaptive card not displaying action button Show Card

    Hi @JimmyWork 

    You need to use following structure in html field when sending adaptive card using send email action:

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="application/adaptivecard+json">{
    "type": "AdaptiveCard",
    "version": "1.2",
    "hideOriginalBody": true,
    <body tag of adaptive card from adaptive designer>
    }
    </script>
    </head>
    <body>
    Visit the <a href="https://docs.microsoft.com/outlook/actionable-messages">Outlook Dev Portal</a> to learn more about Actionable Messages.
    </body>
    </html>

     

    Card.png

    Here is full html with card:

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="application/adaptivecard+json">{
    "type": "AdaptiveCard",
    "version": "1.2",
    "hideOriginalBody": false,
    "body": [
    {
    "type": "TextBlock",
    "text": "Publish Adaptive Card schema",
    "weight": "Bolder",
    "size": "Medium"
    },
    {
    "type": "ColumnSet",
    "columns": [
    {
    "type": "Column",
    "width": "auto",
    "items": [
    {
    "type": "Image",
    "url": "https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg",
    "size": "Small",
    "style": "Person"
    }
    ]
    },
    {
    "type": "Column",
    "width": "stretch",
    "items": [
    {
    "type": "TextBlock",
    "text": "Matt Hidinger",
    "weight": "Bolder",
    "wrap": true
    },
    {
    "type": "TextBlock",
    "spacing": "None",
    "text": "Created {{DATE(2017-02-14T06:08:39Z, SHORT)}}",
    "isSubtle": true,
    "wrap": true
    }
    ]
    }
    ]
    },
    {
    "type": "TextBlock",
    "text": "Now that we have defined the main rules and features of the format, we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation.",
    "wrap": true
    },
    {
    "type": "FactSet",
    "facts": [
    {
    "title": "Board:",
    "value": "Adaptive Card"
    },
    {
    "title": "List:",
    "value": "Backlog"
    },
    {
    "title": "Assigned to:",
    "value": "Matt Hidinger"
    },
    {
    "title": "Due date:",
    "value": "Not set"
    }
    ]
    }
    ],
    "actions": [
    {
    "type": "Action.ShowCard",
    "title": "Set due date",
    "card": {
    "type": "AdaptiveCard",
    "body": [
    {
    "type": "Input.Date",
    "id": "dueDate"
    }
    ],
    "actions": [
    {
    "type": "Action.Submit",
    "title": "OK"
    }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
    }
    },
    {
    "type": "Action.ShowCard",
    "title": "Comment",
    "card": {
    "type": "AdaptiveCard",
    "body": [
    {
    "type": "Input.Text",
    "id": "comment",
    "isMultiline": true,
    "placeholder": "Enter your comment"
    }
    ],
    "actions": [
    {
    "type": "Action.Submit",
    "title": "OK"
    }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
    }
    }
    ]
    }
    </script>
    </head>
    <body>
    Visit the <a href="https://docs.microsoft.com/outlook/actionable-messages">Outlook Dev Portal</a> to learn more about Actionable Messages.
    </body>
    </html>

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • v-litu-msft Profile Picture
    on at
    Re: Adaptive card not displaying action button Show Card

     

    I tested the method provided by @DeepakS , it works and I think he is correct.

    If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

    Best Regards,
    Community Support Team _ Lin Tu

    Hi @JimmyWork,

  • JimmyW Profile Picture
    2,563 on at
    Re: Adaptive card not displaying action button Show Card

    @DeepakS Thank you for answering

    But where do you input the "originator" part?

    What i do is i use compose for the adapative card and from Microsoft site i can't find the information you are posting so i can't really understand why.

     

    And your test crad contains 2x ShowCards, this works as i stated before but not if you use 1.

    2020-03-18 09_31_00-Edit your flow _ Power Automate.png2020-03-18 09_33_10-Mail - EPN SYSTEMS - Outlook.png

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="application/adaptivecard+json">{
    "type": "AdaptiveCard",
    "version": "1.2",
    "hideOriginalBody": false,
    	"body": [
    		{
    			"type": "TextBlock",
    			"text": "This card's action will show another card"
    		}
    	],
    	"actions": [
    		{
    			"type": "Action.ShowCard",
    			"title": "Action.ShowCard",
    			"card": {
    				"type": "AdaptiveCard",
    				"body": [
    					{
    						"type": "TextBlock",
    						"text": "What do you think?"
    					}
    				],
    				"actions": [
    					{
    						"type": "Action.Submit",
    						"title": "Neat!"
    					}
    				]
    			}
    		}
    	]
    }
    </script>
    </head>
    <body>
    Visit the <a href="https://docs.microsoft.com/outlook/actionable-messages">Outlook Dev Portal</a> to learn more about Actionable Messages.
    </body>
    </html>

     

    The result will be not showing the ShowCard Action. But if you use 2x ShowCard then yes it will show.

  • JimmyW Profile Picture
    2,563 on at
    Re: Adaptive card not displaying action button Show Card

    @v-litu-msft I still has the same issue if you only use 1x ShowCard it will not display it.

  • JimmyW Profile Picture
    2,563 on at
    Re: Adaptive card not displaying action button Show Card

    @DeepakS Would u mind testing with only one showcard, as i do not have any issues with 2. Just want to confirm that the bug is there.

  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at
    Re: Adaptive card not displaying action button Show Card

    Hi @JimmyWork 

     

    Here is a sample with one action card:

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="application/adaptivecard+json">{
    "type": "AdaptiveCard",
    "version": "1.2",
    "hideOriginalBody": false,
    "body":[
    {
    "type": "TextBlock",
    "text": "Publish Adaptive Card schema",
    "weight": "Bolder",
    "size": "Medium"
    },
    {
    "type": "ColumnSet",
    "columns": [
    {
    "type": "Column",
    "width": "auto",
    "items": [
    {
    "type": "Image",
    "url": "https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg",
    "size": "Small",
    "style": "Person"
    }
    ]
    },
    {
    "type": "Column",
    "width": "stretch",
    "items": [
    {
    "type": "TextBlock",
    "text": "Matt Hidinger",
    "weight": "Bolder",
    "wrap": true
    },
    {
    "type": "TextBlock",
    "spacing": "None",
    "text": "Created {{DATE(2017-02-14T06:08:39Z, SHORT)}}",
    "isSubtle": true,
    "wrap": true
    }
    ]
    }
    ]
    },
    {
    "type": "TextBlock",
    "text": "Now that we have defined the main rules and features of the format, we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation.",
    "wrap": true
    },
    {
    "type": "FactSet",
    "facts": [
    {
    "title": "Board:",
    "value": "Adaptive Card"
    },
    {
    "title": "List:",
    "value": "Backlog"
    },
    {
    "title": "Assigned to:",
    "value": "Matt Hidinger"
    },
    {
    "title": "Due date:",
    "value": "Not set"
    }
    ]
    }
    ],
    "actions": [
    {
    "type": "Action.ShowCard",
    "title": "Set due date",
    "card": {
    "type": "AdaptiveCard",
    "body": [
    {
    "type": "Input.Date",
    "id": "dueDate"
    }
    ],
    "actions": [
    {
    "type": "Action.Submit",
    "title": "OK"
    }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
    }
    }
    ]
    }
    </script>
    </head>
    <body>
    Visit the <a href="https://docs.microsoft.com/outlook/actionable-messages">Outlook Dev Portal</a> to learn more about Actionable Messages.
    </body>
    </html>

     

    Try this out.

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • JimmyW Profile Picture
    2,563 on at
    Re: Adaptive card not displaying action button Show Card

    @DeepakS 

    Thank you but im not sure you are understanding the issue.

     

    ShowCard with Textbox inside, will not be displayed. The card you provided is a submit action.
    Could you please try this.

    This is copied from Microsoft and the result is no showcard button, it will display the textbox thats inside the showcard but not the button itself.

     

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="application/adaptivecard+json">{
    "type": "AdaptiveCard",
    "version": "1.2",
    "hideOriginalBody": false,
    	"body": [
    		{
    			"type": "TextBlock",
    			"text": "This card's action will show another card"
    		}
    	],
    	"actions": [
    		{
    			"type": "Action.ShowCard",
    			"title": "Action.ShowCard",
    			"card": {
    				"type": "AdaptiveCard",
    				"body": [
    					{
    						"type": "TextBlock",
    						"text": "What do you think?"
    					}
    				],
    				"actions": [
    					{
    						"type": "Action.Submit",
    						"title": "Neat!"
    					}
    				]
    			}
    		}
    	]
    }
    </script>
    </head>
    <body>
    Visit the <a href="https://docs.microsoft.com/outlook/actionable-messages">Outlook Dev Portal</a> to learn more about Actionable Messages.
    </body>
    </html>

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard