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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Open Email button Not ...
Power Automate
Unanswered

Open Email button Not working

(0) ShareShare
ReportReport
Posted on by
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"
    }
  ]
}
Screenshot 2026-04-17 084548.png
Categories:
I have the same question (0)
  • Vish WR Profile Picture
    755 on at
     
    The line below in your code will consider this a string 
      "actions": [
        {
          "type": "Action.OpenUrl",
          "title": "Open Email",
          "url": "Compose_CleanWeblink"
        }
      ]
    }

    Change this to.  
    "url": "@{outputs('Compose_CleanWebLink')}"
     
    Let me know if this works 
     
    For the image not loading, Adaptive Cards in Teams cannot authenticate to Microsoft Graph, since you already have the get user profile image, you can convert as base64 and use it in an adaptive card 
     
    Store the base64 in compose 
    data:image/png;base64,@{base64(body('Get_user_photo_(V2)'))}
     

    Use this in an adaptive card 

    "url": "@{outputs('Compose_Picture')}"



     
    Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥


     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard