Good Morning!
I Work for a Service Desk as a Team Lead and I have created a Flow inside of Power Automate to Message a Teams chat whenever a new email comes into the Support inbox for the team to create a ticket and support. My goal was to make it as visually appealing and clean as possible as IT Leadership stakeholders would eventually be in this Group chat and to make it as functionally approachable for the Technicians using it day to day.
The main issues I'm having are that the profile picture doesn't load (not a huge deal, this is just for aesthetics and seeing at a glance if one person has sent in 3 emails etc) and that the button I created for opening the email in question that the post is posting about is not clickable.
I took some troubleshooting measures and changed the button to have a link to micsrosoft.com and that worked without a problem, so I don't think its silently failing or being blocked by a security policy etc.
Please let me know if anyone knows what I'm doing wrong and how to fix it!
My Flow is as Follows > When a new email arrives in a shared mailbox (V2) > Get User photo (V2) > Compose CleanWebLink > Compose Picture > Post Card in a chat or channel
Here is my JSON Adaptive card Raw
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.5",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "https://graph.microsoft.com/v1.0/users/@{triggerOutputs()?['body/fromAddress']}/photo/$value",
"size": "Small",
"style": "Person"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "@{triggerOutputs()?['body/from']}",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "TextBlock",
"text": "@{triggerOutputs()?['body/fromAddress']}",
"isSubtle": true,
"spacing": "None"
}
]
}
]
},
{
"type": "TextBlock",
"text": "@{triggerOutputs()?['body/subject']}",
"wrap": true,
"weight": "Bolder",
"size": "Medium",
"spacing": "Medium"
},
{
"type": "TextBlock",
"text": "@{triggerOutputs()?['body/bodyPreview']}",
"wrap": true,
"spacing": "Small"
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "Open Email",
"url": "Compose_CleanWeblink"
}
]
}