cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ThareLyn
Helper I
Helper I

AutoInvokeAction on Adaptive Card is not Working

Hi,

I have an actionable message for outlook using powerautomate. Everything working fine. When you click the buttons in the card refreshes as it should be. But when Im trying to implement the "AutoInvokeAction" it is not working, it doesn't refresh the card. Can anyone tell me where's the problem here?

PS. AutoInvokeAction doesn't even trigger the flow it shouldd be triggering when the card is loaded


Adaptive Card
Copy
{
"type": "AdaptiveCard",
"id": "427FB9DB-E2E6-4A26-B684-454D6B62A731",
"correlationId": "347dfae5-8494-410d-8830-30f599ca6e52",
"originator": "*************************",
"messageCardContext": {
"correlationId": "347dfae5-8494-410d-8830-30f599ca6e52",
"messageCardSource": "AdaptiveCard",
"oamAppName": "**************",
"messageCardStampingSource": "TEE",
"isBodyHidden": false,
"stampingCorrelationVector": "0k8F3u3YBEmKhKsbRL5fqQ.1"
},
"version": "1.0",
"padding": "None",
"body": [
{
"altText": "******* Logo",
"url": "*******************************************_150.png",
"type": "Image"
},
{
"size": "large",
"text": "****************",
"weight": "bolder",
"type": "TextBlock"
},
{
"text": "Requested by **************************",
"wrap": true,
"type": "TextBlock"
},
{
"facts": [
{
"title": "Date Created",
"value": "08/11/2021 23:44:10"
}
],
"type": "FactSet"
},
{
"placeholder": "",
"value": "**********************",
"id": "emailaddress",
"isVisible": false,
"type": "Input.Text"
},
{
"placeholder": "",
"value": "************* Admin",
"id": "displayname",
"isVisible": false,
"type": "Input.Text"
},
{
"placeholder": "",
"value": "c71c0719-fcfa-eb11-94ef-00224810d36c",
"id": "activity",
"isVisible": false,
"type": "Input.Text"
},
{
"placeholder": "",
"value": "465 Inc. Contract",
"id": "**************",
"isVisible": false,
"type": "Input.Text"
},
{
"placeholder": "",
"value": "First",
"id": "ApprovalType",
"isVisible": false,
"type": "Input.Text"
},
{
"placeholder": "",
"value": "f859889e-499e-49c1-8b2f-eb011fc0b575",
"id": "contractid",
"isVisible": false,
"type": "Input.Text"
},
{
"placeholder": "",
"value": "635ba070-34bc-eb11-bacc-000d3acc2222",
"id": "approverid",
"isVisible": false,
"type": "Input.Text"
},
{
"text": "Check the details here: [Contract Details](*****************************)",
"type": "TextBlock"
},
{
"actions": [
{
"card": {
"type": "AdaptiveCard",
"version": "1.0",
"padding": "None",
"body": [
{
"text": "Comments",
"wrap": true,
"type": "TextBlock"
},
{
"isMultiline": true,
"maxLength": 2048,
"placeholder": "Enter comments",
"id": "comments1",
"type": "Input.Text"
}
],
"actions": [
{
"method": "POST",
"url": "https://prod-21.******************************************",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": null
}
],
"body": "{\"id\":\"/providers/Microsoft.ProcessSimple/environments//approvals//approvalResponses/\",\"type\":\"/providers/Microsoft.ProcessSimple/environments/approvals/approvalResponses\",\"properties\":{\"response\":\"Approve\",\"comments\":\"{{comments1.value}}\",\"email\":\"{{emailaddress.value}}\",\"approvalType\":\"{{ApprovalType.value}}\",\"Activity\":\"{{activity.value}}\",\"ContractName\":\"{{contractname.value}}\",\"ContractId\":\"{{contractid.value}}\",\"ApproverId\":\"{{approverid.value}}\"}}",
"title": "Submit",
"isPrimary": false,
"type": "Action.Http"
}
],
"autoInvokeAction": null,
"autoInvokeOptions": null,
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
},
"title": "Approve",
"isPrimary": false,
"type": "Action.ShowCard"
},
{
"card": {
"type": "AdaptiveCard",
"version": "1.0",
"padding": "None",
"body": [
{
"text": "Comments",
"wrap": true,
"type": "TextBlock"
},
{
"isMultiline": true,
"maxLength": 2048,
"placeholder": "Enter comments",
"id": "comments2",
"type": "Input.Text"
}
],
"actions": [
{
"method": "POST",
"url": "https://prod-21.*****************************",
"headers": [
{
"name": "Authorization",
"value": null
},
{
"name": "Content-Type",
"value": "application/json"
}
],
"body": "{\"id\":\"/providers/Microsoft.ProcessSimple/environments//approvals//approvalResponses/\",\"type\":\"/providers/Microsoft.ProcessSimple/environments/approvals/approvalResponses\",\"properties\":{\"response\":\"Reject\",\"comments\":\"{{comments2.value}}\",\"email\":\"{{emailaddress.value}}\",\"approvalType\":\"{{ApprovalType.value}}\",\"Activity\":\"{{activity.value}}\",\"ContractName\":\"{{contractname.value}}\",\"ContractId\":\"{{contractid.value}}\",\"ApproverId\":\"{{approverid.value}}\"}}",
"title": "Submit",
"isPrimary": false,
"type": "Action.Http"
}
],
"autoInvokeAction": null,
"autoInvokeOptions": null,
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
},
"title": "Reject",
"isPrimary": false,
"type": "Action.ShowCard"
}
],
"type": "ActionSet"
},
{
"items": [
{
"size": "small",
"text": "This message was created by Consensus - Contract Lifecycle and Management by Barhead. Please do not reply.",
"weight": "lighter",
"wrap": true,
"type": "TextBlock"
}
],
"padding": "None",
"separator": true,
"type": "Container"
}
],
"autoInvokeAction": {
"hideCardOnInvoke": false,
"method": "POST",
"url": "https://prod-21.*********************",
"body": "",
"isPrimary": true,
"type": "Action.Http"
},
"autoInvokeOptions": null,
"constrainWidth": true,
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"@isSenderAuthenticated": true,
"@entityExtractionTrustLevel": "Unknown",
"@EntityId": "d72cbba5-5be7-4f1d-bc74-e5ce5f573f31",
"@correlationTrail": "AssetId=7d5924d8-f23b-400b-9930-1ddbd4d1abe8;ExtractionId=f119a1ef-3efb-4650-9886-b94b79932571;EntityId=d72cbba5-5be7-4f1d-bc74-e5ce5f573f31",
"@extractionTimeUtc": "2021-08-11T23:44:12.5038386Z"
}
Diagnostics
Ask for help

0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,295)