Forum Discussion
nevilk
Sep 13, 2024Copper Contributor
Workflow Messages are Empty when Posting to Mobile App Private Channel
Hi, I have a workflow setup on my teams private channel. I modified the workflow to post as "User" (otherwise it does not work). I am able to post message to the private channel successfully but ...
- Sep 19, 2024
nevilk ,we changed the card JSON format as below and it started rendering properly in both Teams Mobile Public and private channels. Could you please try once and let us know if it renders at your end as well?
{ "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.4", "body": [ { "type": "Container", "style": "warning", "bleed": true, "items": [ { "type": "TextBlock", "size": "medium", "weight": "bolder", "text": "Test title", "style": "heading", "wrap": true } ] }, { "type": "TextBlock", "size": null, "weight": null, "text": "Test description", "style": null, "wrap": true }, { "type": "FactSet", "facts": [ { "title": "custom:stringKey", "value": "value-string" }, { "title": "custom:stringSetSingleton", "value": "singleton" }, { "title": "custom:stringSet", "value": "forth item, third item, tenth item, sixth item, eighth item, eleventh item, eighteenth item, second item, twentieth item, ninth item, seventeenth item, first item, nineteenth item, seventh item, fo..." } ] } ], "actions": [ { "type": "Action.OpenUrl", "title": "View Item", "url": "https://example.com" } ] } } ] }
Result: (Both in Private and Public channel in Mobile devices)
Android:iOS:
Prasad_Das-MSFT
Microsoft
Sep 19, 2024nevilk ,we changed the card JSON format as below and it started rendering properly in both Teams Mobile Public and private channels. Could you please try once and let us know if it renders at your end as well?
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"body": [
{
"type": "Container",
"style": "warning",
"bleed": true,
"items": [
{
"type": "TextBlock",
"size": "medium",
"weight": "bolder",
"text": "Test title",
"style": "heading",
"wrap": true
}
]
},
{
"type": "TextBlock",
"size": null,
"weight": null,
"text": "Test description",
"style": null,
"wrap": true
},
{
"type": "FactSet",
"facts": [
{ "title": "custom:stringKey", "value": "value-string" },
{ "title": "custom:stringSetSingleton", "value": "singleton" },
{
"title": "custom:stringSet",
"value": "forth item, third item, tenth item, sixth item, eighth item, eleventh item, eighteenth item, second item, twentieth item, ninth item, seventeenth item, first item, nineteenth item, seventh item, fo..."
}
]
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "View Item",
"url": "https://example.com"
}
]
}
}
]
}
Result: (Both in Private and Public channel in Mobile devices)
Android:
iOS:
nevilk
Sep 20, 2024Copper Contributor
Prasad_Das-MSFT Thanks for the updated payload. I can confirm its working on mobile Teams private channels. I wonder if this is an inconsistency in the backend processing payloads for cross platforms, as it works for desktop/web and mobile public channels. Would engineering still be looking into this?
- Prasad_Das-MSFTSep 23, 2024
Microsoft
nevilk , we already have a bug raised for this. If we get any update from engineering team, we will definitely inform you. Thanks!
If the response was helpful, please share your feedback via Microsoft Teams Developer Feedback link.