This repository was archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Update an existing Adaptive Card - 'activityId' cannot be null error #1153
Copy link
Copy link
Closed
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.customer-reportedIssue is created by anyone that is not a collaborator in the repository.Issue is created by anyone that is not a collaborator in the repository.needs-triageThe issue has just been created and it has not been reviewed by the team.The issue has just been created and it has not been reviewed by the team.
Description
Describe the bug
When using the "Update an existing Adaptive Card" action, it throws the error: 'activityId' cannot be null.
Also, there is a typo in the default for the Activity ID setting. It is '=turn.activity.replyTo' when I believe the author likely meant '=turn.activity.replyToId'
Version
Microsoft.Bot.Components.AdaptiveCards 1.0.0
Version: 2.0.0
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0
To Reproduce
Here is the configuration.
{
"$kind": "Microsoft.Bot.Components.UpdateAdaptiveCard",
"$designer": {
"id": "Zr7TzQ"
},
"template": {
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "${textData}",
"wrap": true
}
]
},
"activityId": "=dialog.activityId",
"data": {
"textData": "- This \r- One \r"
}
}The standard Composer Update Activity action works fine with the same activityId, e.g.
{
"$kind": "Microsoft.UpdateActivity",
"$designer": {
"id": "QIw5n9"
},
"activity": "${UpdateActivity_Activity_QIw5n9()}",
"activityId": "=dialog.activityId"
}Expected behavior
update card with no error
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.customer-reportedIssue is created by anyone that is not a collaborator in the repository.Issue is created by anyone that is not a collaborator in the repository.needs-triageThe issue has just been created and it has not been reviewed by the team.The issue has just been created and it has not been reviewed by the team.