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.
User | Count |
---|---|
91 | |
40 | |
23 | |
20 | |
16 |
User | Count |
---|---|
130 | |
49 | |
46 | |
28 | |
26 |