Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Universal Action adaptive card is not refreshing automatically after adding few more column sets #804

Open
manikandans87 opened this issue May 18, 2023 · 4 comments
Assignees

Comments

@manikandans87
Copy link

manikandans87 commented May 18, 2023

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.

  1. 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" }
    ]
    }
    ]
    }
    `

  2. 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.

@manikandans87
Copy link
Author

Hello, Can you please provide update on this issue?

@ChetanSharma-msft
Copy link
Collaborator

Thanks for raising your query.
We will look into it and let you know the updates.

@manikandans87
Copy link
Author

manikandans87 commented May 25, 2023 via email

@ChetanSharma-msft
Copy link
Collaborator

Hello @manikandans87 - Sorry for delay in response.
We will look into it and let you know the updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants