
Announcements
Hello,
I am using flow to send a teams message through my channel when a new item added to our Sharepoint page. I created the flow everything works fine but images are not shown in the teams app. I see "undefined" on the picture area on the teams. Is this an access problem? When I try to put an external link other than sharepoint image link, it works like a charm.
Code is here
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "A New Post on Intranet Page:",
"size": "large",
"weight": "bolder"
},
{
"type": "TextBlock",
"text": "@{triggerBody()?['{Name}']}",
"size": "large",
"weight": "bolder"
},
{
"type": "TextBlock",
"text": "Category: @{triggerBody()?['Usage']?['Value']}",
"size": "medium",
"wrap": true,
"isSubtle": true,
"weight": "bolder"
},
{
"type": "TextBlock",
"text": "@{triggerBody()?['Summary']}",
"size": "medium",
"wrap": true,
"isSubtle": true
},
],
},
{
"type": "Column",
"width": 2,
"items": [
{
"type": "Image",
"url": "https://piworks.sharepoint.com@{triggerBody()?['ImageRelativePath']}",
"size": "auto"
}
]
}
]
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "Open on Intranet",
"url": "https://piworks.sharepoint.com/sites/intranet/Pages/story-detail.aspx?itemId=@{triggerBody()?['ID']}"
}
]
}
Hi,
SharePoint uses a lot of special image encoding that Flow cannot handle. Presently we recommend uploading your images to Azure Storage Blob if you are going to be pulling images into SharePoint. You can also use your selection or 3rd party image hosting if you would like too.
Regards,
Alex
-------
Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.