Reputation: 85
I'm trying to get the automatic refresh in actionable messages working in outlook and followed the followed this Microsoft Guide.
I have implemented an Azure Logic App to handle the update request, create an updated card and send it as response. My problem is that it never triggers and it seems to never receive a request when an actionable message should update.
I confirmed with cURL that the Logic App response to http requests and I checked the link implemented in the actionable message. I followed this Microsoft Guide to try to trigger the update manually but it doesn't seem to work.
My JSON looks like this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="application/adaptivecard+json">
{
"type": "AdaptiveCard",
"version": "1.0",
"hideOriginalBody": true,
"originator": "d65fe2b0-7115-4fed-9e63-f0e3693da070",
"body": [
{
"type": "TextBlock",
"text": " Approval required",
"size": "Large",
"wrap": true
},
{
"type": "Input.Text",
"id": "feedbackText",
"placeholder": "Business Justification",
"isMultiline": true
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Http",
"title": "Approve",
"style": "positive",
"url": "http://www.approval.mylogicapp.com",
"id": "approve",
"method": "POST",
"headers": [
{
"name": "Authorization",
"value": ""
}
],
"body": "{ActionStatus: 'Approved'}"
},
{
"type": "Action.Http",
"title": "Reject",
"style": "destructive",
"url": "http://www.logicapp.com",
"id": "reject",
"method": "POST",
"headers": [
{
"name": "Authorization",
"value": ""
}
],
"body": "{ActionStatus: 'Rejected'}"
}
]
}
],
"autoInvokeAction": {
"method": "POST",
"url": "http://update.mylogicapp.com",
"body": "",
"type": "Action.Http"
},
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}
</script>
</head>
<body>
</body>
</html>
I'm open for any ideas.
Upvotes: 0
Views: 21