How to use Update Activity and Delete Activity actions
See original GitHub issueDescribe the bug
I’m trying to use the Update Activity
action to update an activity send before. The action accepts an Activity Id
, but it’s not clear where to get the Activity Id from. The watermark suggests =dialog.lastActivityId
but that property never gets polulated.
Version
1.1.1
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior:
- Create an empty bot with an unknown intent trigger
- Add a Response action
- Add an Update Activity action and set
Activity Id
to=dialog.lastActivityId
- Run in the emulator and type something
- See the error
'activityId' cannot be null.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Delete your activity - Android - Google Account Help
Delete individual activity items · On your Android phone or tablet, go to myactivity.google.com. · Scroll down to your activity. · Find the...
Read more >Update and delete 'recurring' Activities with Data Loader
Log into Data Loader and select Export All. · Select Task or Event, depending on which type of Activity you're deleting or updating....
Read more >how to properly delete or update activities on bot framework?
I tried to use TurnContext.UpdateActivity , but I'm getting an error. My code: IMessageActivity responseActivity = MessageFactory.Text("Test ctm ...
Read more >Delete or Update Activity log and Journal Field Entries
1. Get the sys_id of the task · 2. Get the audit_sysid of the exact entry you want to delete by going to...
Read more >Delete Activity in Azure Data Factory
Search for Delete in the pipeline Activities pane, and drag a Delete activity to the pipeline canvas. · Select the new Delete activity...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I am able to get the activity ID. But I am unable to get any activity to update.
First of all, there are only some channels that allow you to update the activity. From some poking around, it should be: Teams, Slack, Telegram, and Skype.
This contradicts what is currently listed here.
So, it should at least work in Teams. I have been able to retrive the last activity ID in the following channels: Emulator, Web Chat, Teams, Telegram and Skype.
It looks like it won’t work or be supported in Emulator or Web Chat. At least for now.
Here is my LG:
And here is my dialog:
@benbrown Any other pointers or things I may be missing to get the activity to actually update once I have the activity ID?
Sure, this feature is not yet mature and I have reverted to re-do my bot in C#.