You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have build an approval solution using universal action adaptive card, bot framework with NodeJS and Power Apps. The adaptive card automatic refresh is not working after adding one more column set with text and choices. The workflow of the application is as below.
Power Automate Cloud Flow -> Azure Bot -> Adaptive Card in Teams and Outlook channel
Automatic refresh is working in outlook and not in teams.
Hello,
Can we get latest update on this issue?
Kind Regards,
Manikandan S
From: ChetanSharma-MSFT ***@***.***>
Sent: Monday, May 22, 2023 1:08 PM
To: OfficeDev/Microsoft-Teams-Samples ***@***.***>
Cc: Manikandan Sakthivel [KENS] ***@***.***>; Author ***@***.***>
Subject: [EXTERNAL] Re: [OfficeDev/Microsoft-Teams-Samples] Universal Action adaptive card is not refreshing automatically after adding few more column sets (Issue #804)
This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.
Thanks for raising your query.
We will look into it and let you know the updates.
-
Reply to this email directly, view it on GitHub<#804 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A2EH5KPCHQKL25LI6DUBWW3XHLYBXANCNFSM6AAAAAAYGDX4BI>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
CONFIDENTIALITY: This e-mail (including any attachments) is confidential and may contain proprietary information. If you are not the intended recipient, be advised that you have received this e-mail in error. Any use, disclosure, dissemination, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please immediately contact the sender by return e-mail and then irretrievably delete it from your system.
Hello
We have build an approval solution using universal action adaptive card, bot framework with NodeJS and Power Apps. The adaptive card automatic refresh is not working after adding one more column set with text and choices. The workflow of the application is as below.
Power Automate Cloud Flow -> Azure Bot -> Adaptive Card in Teams and Outlook channel
Automatic refresh is working in outlook and not in teams.
Below is the Adaptive Card Json.
Teams Refresh is not working.
` {
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"originator": "Outlook Originator ID",
"refresh": {
"action": {
"type": "Action.Execute",
"title": "Submit",
"verb": "refreshCard",
"data": {
"ownattribute1": "",
"ownattribute2": ""
}
},
"userIds": ["AAD Object ID"]
},
"body": [
{
"type": "Input.Text",
"placeholder": "Placeholder text",
"id": "id_record",
"value": "",
"isVisible": false
},
{
"type": "Container",
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Some Text",
"wrap": true,
"size": "ExtraLarge",
"weight": "Bolder"
}
],
"verticalContentAlignment": "Center"
}
],
"style": "emphasis",
"bleed": true
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.ShowCard",
"title": "show details",
"card": {
"type": "AdaptiveCard",
"body": [
{
"type": "FactSet",
"facts": [
{
"title": "Title - 1",
"value": "Detail - 1"
},
{ "title": "Title - 2", "value": "Detail - 2" },
{ "title": "Title - 3", "value": "Detail - 3" },
{
"title": "Title - 4",
"value": "Detail - 4"
},
{
"title": "Title - 5",
"value": "Detail - 5"
}
]
}
]
}
}
]
}
]
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Some Text",
"wrap": true,
"weight": "Bolder",
"size": "Medium"
}
]
}
]
},
{
"type": "Container",
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Some Text",
"wrap": true,
"weight": "Bolder"
}
]
}
],
"style": "accent",
"bleed": true
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{ "type": "TextBlock", "text": "Question 1", "wrap": true },
{
"type": "Input.Text",
"placeholder": "Some Text",
"id": "id_name_0.0",
"value": "Question 1",
"isVisible": false,
"isRequired": false,
"errorMessage": "Error Message"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.ChoiceSet",
"choices": [
{ "title": "Yes", "value": "Yes" },
{ "title": "No", "value": "No" },
{ "title": "NA", "value": "NA" }
],
"style": "expanded",
"id": "id_choice_0.0",
"isRequired": true,
"label": "Choose an option",
"errorMessage": "Select an option"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.Number",
"placeholder": "Some Text",
"value": "",
"id": "id_number_0.0"
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Question 2",
"wrap": true
},
{
"type": "Input.Text",
"placeholder": "Some Text",
"id": "id_name_0.1",
"value": "Question 2",
"isVisible": false,
"isRequired": false,
"errorMessage": "Error Message"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.ChoiceSet",
"choices": [
{ "title": "Yes", "value": "Yes" },
{ "title": "No", "value": "No" },
{ "title": "NA", "value": "NA" }
],
"style": "expanded",
"id": "id_choice_0.1",
"isRequired": true,
"label": "Choose an option",
"errorMessage": "Select an option"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.Number",
"placeholder": "Some Text",
"value": "",
"id": "id_number_0.1"
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{ "type": "TextBlock", "text": "Question 3", "wrap": true },
{
"type": "Input.Text",
"placeholder": "Some Text",
"id": "id_name_0.2",
"value": "",
"isVisible": true,
"isRequired": true,
"errorMessage": "Enter 'Not applicable' and choose 'N.A.' if item is not applicable."
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.ChoiceSet",
"choices": [
{ "title": "Yes", "value": "Yes" },
{ "title": "No", "value": "No" },
{ "title": "NA", "value": "NA" }
],
"style": "expanded",
"id": "id_choice_0.2",
"isRequired": true,
"label": "Choose an option",
"errorMessage": "Select an option"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.Number",
"placeholder": "Some Text",
"value": "",
"id": "id_number_0.2"
}
]
}
]
}
]
},
{
"type": "Container",
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Some Text",
"wrap": true,
"weight": "Bolder"
}
]
}
],
"style": "accent",
"bleed": true
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{ "type": "TextBlock", "text": "Question 4", "wrap": true },
{
"type": "Input.Text",
"placeholder": "Some Text",
"id": "id_name_1.0",
"value": "Question 4",
"isVisible": false,
"isRequired": false,
"errorMessage": "Enter 'Not applicable' and choose 'N.A.' if item is not applicable."
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.ChoiceSet",
"choices": [
{ "title": "Yes", "value": "Yes" },
{ "title": "No", "value": "No" },
{ "title": "NA", "value": "NA" }
],
"style": "expanded",
"id": "id_choice_1.0",
"isRequired": true,
"label": "Choose an option",
"errorMessage": "Select an option"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.Number",
"placeholder": "Some Text",
"value": "",
"id": "id_number_1.0",
"isVisible": false
}
]
}
]
}
]
},
{
"type": "Container",
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Some Text",
"wrap": true,
"weight": "Bolder"
}
]
}
],
"style": "accent",
"bleed": true
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Question 5",
"wrap": true
},
{
"type": "Input.Text",
"placeholder": "Some Text",
"id": "id_name_2.0",
"value": "Question 5",
"isVisible": false,
"isRequired": false,
"errorMessage": "Enter 'Not applicable' and choose 'N.A.' if item is not applicable."
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.ChoiceSet",
"choices": [
{ "title": "Yes", "value": "Yes" },
{ "title": "No", "value": "No" },
{ "title": "NA", "value": "NA" }
],
"style": "expanded",
"id": "id_choice_2.0",
"isRequired": true,
"label": "Choose an option",
"errorMessage": "Select an option"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.Number",
"placeholder": "Some Text",
"value": "",
"id": "id_number_2.0"
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Question 6",
"wrap": true
},
{
"type": "Input.Text",
"placeholder": "please specify",
"id": "id_name_2.1",
"value": "Question 6",
"isVisible": false,
"isRequired": false,
"errorMessage": "Enter 'Not applicable' and choose 'N.A.' if item is not applicable."
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.ChoiceSet",
"choices": [
{ "title": "Yes", "value": "Yes" },
{ "title": "No", "value": "No" },
{ "title": "NA", "value": "NA" }
],
"style": "expanded",
"id": "id_choice_2.1",
"isRequired": true,
"label": "Choose an option",
"errorMessage": "Select an option"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.Number",
"placeholder": "Some Text",
"value": "",
"id": "id_number_2.1"
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Question 7",
"wrap": true
},
{
"type": "Input.Text",
"placeholder": "Some Text",
"id": "id_name_2.2",
"value": "Question 7",
"isVisible": false,
"isRequired": false,
"errorMessage": "Enter 'Not applicable' and choose 'N.A.' if item is not applicable."
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.ChoiceSet",
"choices": [
{ "title": "Yes", "value": "Yes" },
{ "title": "No", "value": "No" },
{ "title": "NA", "value": "NA" }
],
"style": "expanded",
"id": "id_choice_2.2",
"isRequired": true,
"label": "Choose an option",
"errorMessage": "Select an option"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Input.Number",
"placeholder": "Some Text",
"value": "",
"id": "id_number_2.2"
}
]
}
]
}
},
{
"type": "ActionSet",
"actions": [
{ "type": "Action.Execute", "title": "Submit", "verb": "submitCard" }
]
}
]
}
`
Teams Refresh is working
{ "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.4", "originator": "Outlook Originator ID", "refresh": { "action": { "type": "Action.Execute", "title": "Submit", "verb": "refreshCard", "data": { "ownattribute1": "", "ownattribute2": "" } }, "userIds": ["AAD Object ID"] }, "body": [ { "type": "Input.Text", "placeholder": "Placeholder text", "id": "id_record", "value": "", "isVisible": false }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Some Text", "wrap": true, "size": "ExtraLarge", "weight": "Bolder" } ], "verticalContentAlignment": "Center" } ], "style": "emphasis", "bleed": true }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "ActionSet", "actions": [ { "type": "Action.ShowCard", "title": "show details", "card": { "type": "AdaptiveCard", "body": [ { "type": "FactSet", "facts": [ { "title": "Title - 1", "value": "Detail - 1" }, { "title": "Title - 2", "value": "Detail - 2" }, { "title": "Title - 3", "value": "Detail - 3" }, { "title": "Title - 4", "value": "Detail - 4" }, { "title": "Title - 5", "value": "Detail - 5" } ] } ] } } ] } ] } ] } ] }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Some Text", "wrap": true, "weight": "Bolder", "size": "Medium" } ] } ] }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Some Text", "wrap": true, "weight": "Bolder" } ] } ], "style": "accent", "bleed": true }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Question 1", "wrap": true }, { "type": "Input.Text", "placeholder": "Some Text", "id": "id_name_0.0", "value": "Question 1", "isVisible": false, "isRequired": false, "errorMessage": "Error Message" } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.ChoiceSet", "choices": [ { "title": "Yes", "value": "Yes" }, { "title": "No", "value": "No" }, { "title": "NA", "value": "NA" } ], "style": "expanded", "id": "id_choice_0.0", "isRequired": true, "label": "Choose an option", "errorMessage": "Select an option" } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.Number", "placeholder": "Some Text", "value": "", "id": "id_number_0.0" } ] } ] }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Question 2", "wrap": true }, { "type": "Input.Text", "placeholder": "Some Text", "id": "id_name_0.1", "value": "Question 2", "isVisible": false, "isRequired": false, "errorMessage": "Error Message" } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.ChoiceSet", "choices": [ { "title": "Yes", "value": "Yes" }, { "title": "No", "value": "No" }, { "title": "NA", "value": "NA" } ], "style": "expanded", "id": "id_choice_0.1", "isRequired": true, "label": "Choose an option", "errorMessage": "Select an option" } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.Number", "placeholder": "Some Text", "value": "", "id": "id_number_0.1" } ] } ] }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Question 3", "wrap": true }, { "type": "Input.Text", "placeholder": "Some Text", "id": "id_name_0.2", "value": "", "isVisible": true, "isRequired": true, "errorMessage": "Enter 'Not applicable' and choose 'N.A.' if item is not applicable." } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.ChoiceSet", "choices": [ { "title": "Yes", "value": "Yes" }, { "title": "No", "value": "No" }, { "title": "NA", "value": "NA" } ], "style": "expanded", "id": "id_choice_0.2", "isRequired": true, "label": "Choose an option", "errorMessage": "Select an option" } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.Number", "placeholder": "Some Text", "value": "", "id": "id_number_0.2" } ] } ] } ] }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Some Text", "wrap": true, "weight": "Bolder" } ] } ], "style": "accent", "bleed": true }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Question 4", "wrap": true }, { "type": "Input.Text", "placeholder": "Some Text", "id": "id_name_1.0", "value": "Question 4", "isVisible": false, "isRequired": false, "errorMessage": "Enter 'Not applicable' and choose 'N.A.' if item is not applicable." } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.ChoiceSet", "choices": [ { "title": "Yes", "value": "Yes" }, { "title": "No", "value": "No" }, { "title": "NA", "value": "NA" } ], "style": "expanded", "id": "id_choice_1.0", "isRequired": true, "label": "Choose an option", "errorMessage": "Select an option" } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.Number", "placeholder": "Some Text", "value": "", "id": "id_number_1.0", "isVisible": false } ] } ] } ] }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Some Text", "wrap": true, "weight": "Bolder" } ] } ], "style": "accent", "bleed": true }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Question 5", "wrap": true }, { "type": "Input.Text", "placeholder": "Some Text", "id": "id_name_2.0", "value": "Question 5", "isVisible": false, "isRequired": false, "errorMessage": "Enter 'Not applicable' and choose 'N.A.' if item is not applicable." } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.ChoiceSet", "choices": [ { "title": "Yes", "value": "Yes" }, { "title": "No", "value": "No" }, { "title": "NA", "value": "NA" } ], "style": "expanded", "id": "id_choice_2.0", "isRequired": true, "label": "Choose an option", "errorMessage": "Select an option" } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.Number", "placeholder": "Some Text", "value": "", "id": "id_number_2.0" } ] } ] }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Question 6", "wrap": true }, { "type": "Input.Text", "placeholder": "please specify", "id": "id_name_2.1", "value": "Question 6", "isVisible": false, "isRequired": false, "errorMessage": "Enter 'Not applicable' and choose 'N.A.' if item is not applicable." } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.ChoiceSet", "choices": [ { "title": "Yes", "value": "Yes" }, { "title": "No", "value": "No" }, { "title": "NA", "value": "NA" } ], "style": "expanded", "id": "id_choice_2.1", "isRequired": true, "label": "Choose an option", "errorMessage": "Select an option" } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "Input.Number", "placeholder": "Some Text", "value": "", "id": "id_number_2.1" } ] } ] } ] }, { "type": "ActionSet", "actions": [ { "type": "Action.Execute", "title": "Submit", "verb": "submitCard" } ] } ] }
Please provide your comments or suggestions.
The text was updated successfully, but these errors were encountered: