Fetching all Activity Ids in a Teams

Abhranil Naha 0 Reputation points
2025-03-14T07:55:04.94+00:00

I am developing a Microsoft Teams Conversation Bot. I want to fetch all activity Ids for the bot and delete those using below code:

for (let i = 0; i < activityIds.length; i++) {

// deleteActivity(): deletes an existing activity in the conversation.

await turnContext.deleteActivity(activityIds[i]);

}

Is there a way to fetch all the activity Ids for the Bot?

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,655 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.