Teams Powershell MessageCard

Copper Contributor

Request for assistance:

  1. MessageCard drop down
  2. Report Activity in channel
  3. Link image from OneDrive or Teams \ Files?

 

This is an adaptiveCard hooked into a message as an attachment

The adaptiveCard did not function properly.

It turns out 365 connector cards using webhooks are not supported. BUMMER

 

Oddly, the card did display correctly and the dropdown worked. It dropped down with the proper words.

The 'Update' button did not work. An error appeared stating this is not supported.

 

Is there a way to emulate a drop down in messageCard which works the same?

Additionally, When these cards were generated no one (including me) received a notice of new activity in the channel.

 

 

 

 

 

{
   "type":"message",
   "attachments":[
      {
         "contentType":"application/vnd.microsoft.card.adaptive",
         "contentUrl":null,
         "content":{
            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
            "type": "AdaptiveCard",
            "version": "1.4",
            "refresh": {
                "action": {
        	    "type": "Action.Execute",
        	    "title": "Update"
                },
                "userIds": [
                    "36-digits",
                    "36-digits",
                    "36-digits",
                    "36-digits",
                    "36-digits",
                    "36-digits",
                    "36-digits",
                    "36-digits",
                    "36-digits",
                    "36-digits",
                    "36-digits"
                ]
            },
            "body": [
                {
                    "type": "Input.ChoiceSet",
                    "choices": [{
                        "title": "Unassigned",
                        "value": "Unassigned"
                    },
                    {
                        "title": "Assigned",
                        "value": "Assigned"
                    },
                    {
                        "title": "Duplicate",
                        "value": "Duplicate"
                    },
                    {
                        "title": "Create Ticket",
                        "value": "Create Ticket"
                    },
                    {
                        "title": "Ignore",
                        "value": "Ignore"
                    }],
                    "placeholder": "Unassigned",
                    "id": "UserChoice"
                },
                {
                    "type": "ActionSet",
                    "actions": [{
        		"type": "Action.Execute",
        		"title": "Update",
        		"verb": "personalDetailsFormSubmit",
        		"id": "UserChoice",
        		"fallback": {
        		    "type": "Action.Submit",
        		    "title": "Submit"
        		}
                    }]
                },
                {
                    "type": "Container",
                    "items": [{
                        "type": "TextBlock",
                        "text": "Very Important Title",
                        "weight": "Bolder",
                        "size": "Large"
                    },
                    {
                        "type": "ColumnSet",
                        "columns": [{
                            "type": "Column",
                            "width": "auto",
                            "items": [{
                                "type": "Image",
                                "size": "Large",
                                "url": "https://niftyImage.edu/notreal/amaze.jpg"
                            }]
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [{
                                "type": "TextBlock",
                                "text": "Important Info Line 1",
                                "weight": "Bolder",
                                "size": "Medium"
                            },
                            {
                                "type": "TextBlock",
                                "text": "Important Info Line 2",
                                "weight": "Bolder",
                                "size": "Medium"
                            },
                            {
                                "type": "TextBlock",
                                "text": "Important Info Line 3",
                                "weight": "Bolder",
                                "size": "Medium"
                            }]
                        }]
                    }]
                },
                {
                    "type": "TextBlock",
                    "text": "Download files :"
                },
                {
                    "type": "ColumnSet",
                    "columns": [{
                        "type": "Column",
                        "width": "auto",
                        "items": [{
                            "type": "Container",
                            "items": [{
                                "type": "ActionSet",
                                "actions": [{
                                    "type": "Action.OpenUrl",
                                    "title": "First Doc",
                                    "url": "file://///pathToDoc01.txt"
                                }]
                            }]
                        }]
                    },
                    {
                        "type": "Column",
                        "width": "auto",
                        "items": [{
                            "type": "Container",
                            "items": [{
                                "type": "ActionSet",
                                "actions": [{
                                    "type": "Action.OpenUrl",
                                    "title": "Logs01",
                                    "url": "file://///pathToZip01.zip"
                                }]
                            }]
                        }]
                    },
                    {
        				"type": "Column",
                        "width": "auto",
                        "items": [{
                            "type": "Container",
                            "items": [{
                                "type": "ActionSet",
                                "actions": [{
                                    "type": "Action.OpenUrl",
                                    "title": "Logs02",
                                    "url": "file://///pathToZip02.zip"
                                }]
                            }]
                        }]
                    }]
                }
            ]
        }
    }]
}

 



 

0 Replies