question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when I use GetConversationMembers In MS Teams

See original GitHub issue

Describe the bug

when running a bot from MS Teams, when I attempt to call GetConversationMembers component to get the name of the people I get the following error “GetConversationMembersAsync() only works with BotFrameworkAdapter” Am I missing a setting? is there something I need to enable?

Version

image

Browser

Edge Browser

OS

Windows

To Reproduce

Steps to reproduce the behavior:

  1. Add the GetConversationMembers component to any BeginDialog

image

image

Expected behavior

Get the details of the MS teams user in a private chat which includes their email address.

Screenshots

image

Additional context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LeeParrishMSFTcommented, Sep 2, 2021

@Uggi I’ve created a sample here: GetMembersBot that has the code needed in a Custom Action (documented here: Create custom actions ) that will provide the same results as the built in GetConversationMembers. You can clone the sample repo and add the GetConversationMembersDialog to your Composer solution, and then follow all the other required steps in the instructions for creating a custom action to get it registered to your solution, or you can just follow the instructions for creating a custom action and replace where the source for the MultiplyDialog is referenced with the source for the new GetConversationMembersDialog. I’ve logged an issue against the SDK runtime to get this fixed in the next release, but that may be in October, so this should get you going until then.

0reactions
srinaathcommented, Sep 13, 2021

@Uggi Closing this ticket as the feature has been merged and would be avaialable in our next SDK release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The bot is not a part of the conversation roster error in new ...
Hi, I am using Microsoft Bot Framework to create the message extension. I would like to get the user ... getMember() to get...
Read more >
Why am I having trouble signing in to Microsoft Teams?
You're not using the right credentials. The Windows credentials you signed in with are different than your Microsoft 365 credentials. Try to sign...
Read more >
Rate limiting for bots - Teams
Apps that go over this limit receive an HTTP 429 Too Many Requests error status. All requests are subject to the same rate...
Read more >
BotFrameworkAdapter class
Asynchronously lists the members of a given activity. getConversationMembers(TurnContext). Asynchronously lists the members of the current conversation.
Read more >
Resolve sign-in errors in Teams
Run the Teams Sign-in diagnostic; Use the Microsoft Support and Recovery ... If you still see an error when you try to sign...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found