my Actionable Message card is not refereshing. Here's what I have already checked
- the refesher card has valid syntax according to the actionable card designer
- the refresher card has the
originator
property
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0",
"type": "AdaptiveCard",
"originator": "<guid>",
"body": [
{
"type": "TextBlock",
"text": "The action has been recorded."
}
]
}
The response is returned as following from the API (Azure Functions)
string card = "<card-json>";
req.HttpContext.Response.Headers.Add("CARD-ACTION-STATUS", "Action accepted, thank you.");
req.HttpContext.Response.Headers.Add("CARD-UPDATE-IN-BODY", "true");
return new OkObjectResult(card);
Also I have tried this, without success
string card = "<card-json>";
req.HttpContext.Response.ContentType = "application/json; charset=utf-8";
req.HttpContext.Response.Headers.Add("CARD-ACTION-STATUS", "Action accepted, thank you.");
req.HttpContext.Response.Headers.Add("CARD-UPDATE-IN-BODY", "true");
req.HttpContext.Response.Body = new MemoryStream(Encoding.UTF8.GetBytes(card));
return new OkResult();
When submitting the inital card's POST action, see banner displaying Action accepted, thank you.
is displayed, however the card itself is not refreshed.
Here's the sample API response data
Do you spot any obvious mistakes? Researching this behaviour, I've found that the most common error is not supplying the relevant headers, but I was sure to add them.
Any help is greatly appreciated!
question from:
https://stackoverflow.com/questions/65896278/cannot-refresh-actionable-message 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…