cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
niclasdahl
Frequent Visitor

Dynamic content "banner image url" doesn't work to reference images in adaptive cards or html

I am trying to build a simple flow that posts an adaptive card to a Teams channel when a new sharepoint news post is published, i get pretty much everything to work, except that i cannot get the "banner image url" to work in the flow. 

 

Is there some problem with using the dynamic content "Banner Image Url" that you get from the action "get file properties"?

 

Copying the banner image url from the file properties output and into the thw browser displays the image just fine....

 
 
 

This is the adaptive card design that i use

 

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "@{body('Get_file_properties')['Title']}",
            "size": "Large",
            "weight": "Bolder"
        },
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "Image",
                            "altText": "@{body('Get_file_properties')['Title']}",
                            "url": "@{body('Get_file_properties')?['BannerImageUrl']}"
                        },
                        {
                            "type": "ActionSet",
                            "actions": [
                                {
                                    "type": "Action.OpenUrl",
                                    "title": "Get the full story here...",
                                    "url": "@{body('Get_file_properties')?['{Link}']}"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "@{body('Get_file_properties')?['Description']}",
                            "maxLines": 3
                        }
                    ]
                }
            ]
        }
    ]
}

 

 

 

 

 

I've seen instances where the "Banner Image Url" is used to create email notificiations (check here), but i cant get that to work either, not in Teams (post OR email to channel) or in outlook, have checked both in the desktop app and the online app.

teams email new notification.pngoutlook online news notification.pngoutlook desktop news notification.png

0 REPLIES 0

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,144)