cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hubertlam
Advocate II
Advocate II

Flow bot Adaptive Card - some show up on the phone, some don't

Hi all,

Can someone enlighten me with Flow bot Adaptive Cards as to why some will show on my Android phone's Flow bot, and some don't show at all?

 

Here's the desktop app showing all Flow bot cards. The top one (You have successfully signed on) doesn't show up on my phone:

Annotation 2020-04-10 221615.png

 

...whereas the bottom one does:

Screenshot_20200410_221449_com.microsoft.teams.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Hi!

Problem solved, right?  Congrats!

If the editor is not allowing to fix the error, please remember you can edit manually the Adaptive Card just before copypasting it to your Flow

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

4 REPLIES 4
efialttes
Super User III
Super User III

Hi!

Can you share both action card code? I assume there must be a block, attribute, whatever that is present in the one that is having compatibility issues on Android devices, and is not present on the one that is shown properly.

Hope this helps

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Hi @efialttes ,

 

Here's the code that isn't working on the Android phone:

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "Image",
                            "altText": "Success",
                            "url": "https://normanhurstboys.nsw.edu.au/wp-content/uploads/2020/02/tick.png",
                            "width": "75px",
                            "selectAction": {
                                "type": "Action.OpenUrl",
                                "url": "",
                                "id": "10",
                                "title": ""
                            }
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "**You have sucessfully signed on**",
                            "weight": "Bolder",
                            "size": "Large",
                            "wrap": true,
                            "color": "Accent"
                        },
                        {
                            "type": "TextBlock",
                            "text": "@{body('Convert_time_zone_-_Long_date_pattern')}",
                            "wrap": true,
                            "size": "Large",
                            "color": "Accent",
                            "weight": "Bolder",
                            "spacing": "None"
                        }
                    ],
                    "verticalContentAlignment": "Center"
                }
            ]
        },
        {
            "type": "FactSet",
            "facts": [
                {
                    "title": "Sign on time:",
                    "value": "@{body('Convert_time_zone')}"
                },
                {
                    "title": "Working location:",
                    "value": "@{body('Create_item')?['Sign_x0020_On_x0020_Location']?['Value']}"
                }
            ],
            "separator": true
        }
    ],
    "actions": [
        {
            "type": "Action.OpenUrl",
            "title": "Staff Intranet",
            "url": "https://schoolsnsw.sharepoint.com/sites/N1XHSGBP",
            "style": "positive",
            "id": "1",
            "iconUrl": "https://normanhurstboys.nsw.edu.au/wp-content/uploads/2020/02/sharepoint.png"
        },
        {
            "type": "Action.OpenUrl",
            "title": "Sentral",
            "url": "http://nbhs.nsw.edu.au",
            "style": "positive",
            "id": "2",
            "iconUrl": "https://normanhurstboys.nsw.edu.au/wp-content/uploads/2020/02/sentral.png"
        }
    ]
}

 The following is the code that works:

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "Image",
                            "altText": "Success",
                            "url": "https://normanhurstboys.nsw.edu.au/wp-content/uploads/2020/02/tick.png",
                            "width": "75px",
                            "selectAction": {
                                "type": "Action.OpenUrl",
                                "url": "https://schoolsnsw.sharepoint.com/sites/N1XHSGBP/mathematics/Assessment%20Task%20Holding%20Tank",
                                "id": "10",
                                "title": ""
                            }
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "**Assessment Task  @{body('Get_file_properties')?['Upload_x0020_Type']?['Value']} signed off**",
                            "weight": "Bolder",
                            "size": "Large",
                            "wrap": true,
                            "color": "Accent"
                        }
                    ],
                    "verticalContentAlignment": "Center"
                }
            ]
        },
        {
            "type": "FactSet",
            "facts": [
                {
                    "title": "Stage:",
                    "value": "@{triggerBody()['text']}"
                },
                {
                    "title": "Course:",
                    "value": "Year @{body('Get_file_properties')?['Academic_x0020_Year']?['Value']}"
                },
                {
                    "title": "Task:",
                    "value": "@{body('Get_file_properties')?['Task_x0020_Number']?['Value']}"
                },
                {
                    "title": "Signed off by:",
                    "value": "@{triggerOutputs()['headers']['x-ms-user-name-encoded']}"
                },
                {
                    "title": "Sign off time:",
                    "value": "@{body('Convert_time_zone')}"
                }
            ],
            "separator": true
        }
    ],
    "actions": [
        {
            "type": "Action.OpenUrl",
            "title": "Visit the Assessment Task Holding Tank",
            "url": "https://schoolsnsw.sharepoint.com/sites/N1XHSGBP/mathematics/Assessment%20Task%20Holding%20Tank",
            "style": "positive",
            "id": "1",
            "iconUrl": "https://normanhurstboys.nsw.edu.au/wp-content/uploads/2020/02/sharepoint.png"
        },
        {
            "type": "Action.OpenUrl",
            "title": "Visit the Mathematics Dept MS Team for feedback",
            "url": "https://teams.microsoft.com/l/team/19%3ad7648e13b61649e582f0e653a5629bbe%40thread.skype/conversations?groupId=9c411ed4-7659-4c09-a580-ad9ba14dd3ac&tenantId=05a0e69a-418a-47c1-9c25-9387261bf991",
            "style": "positive",
            "id": "2",
            "iconUrl": "https://normanhurstboys.nsw.edu.au/wp-content/uploads/2020/02/teams.png"
        }
    ]
}

 

Urgh - found the solution!

The image that I was using had an Action.OpenUrl with a blank URL.

However, setting the Action type to (not set)  from the Adaptive Card designer doesn't remove that Action.OpenURL!

Annotation 2020-04-11 002830.png

Hi!

Problem solved, right?  Congrats!

If the editor is not allowing to fix the error, please remember you can edit manually the Adaptive Card just before copypasting it to your Flow

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (36,666)