I am trying to use a scheduled flow to remind members of a private channel to have a virtual coffee meeting together. I am using a flow that works for another team with a public channel. But here it doesn't seem to work.
If I try to use the action "post adaptive card to the channel" I get: BotNotInConversationRoster
I am only a member of the private channel. I added a flow tap to the channel but I don't seem to be able to give the flow bot access to the private channel. I am the only owner of the flow.
Solved! Go to Solution.
@Anonymous
I had exactly the same problem some time ago. Unfortunately, Private Channels do not allow external bots to push messages by design. Actually I found this excelllent post from Laura Kokkarinen reporting this same issue:
https://laurakokkarinen.com/the-ultimate-guide-to-microsoft-teams-based-approvals/
Laura confirms that "...when selecting the team and the channel to send the adaptive card to, ensure the channel is not private. You can’t send an adaptive card as a Flow bot to a private channel. If you try to do that you’ll get an error:
Forbidden. The request failed. Error code: ‘BotRequestFailed’. Error Message: ‘Request to the Bot framework failed with error: ‘{“error”:{“code”:”BotNotInConversationRoster”,”message”:”The bot is not part of the conversation roster.”}}’.’.
The error most likely occurs because you can’t add the Flow bot app (or any other Teams app, for that matter) to a private channel..."
Laura opened a User Voice to Teams engineers, in case you wanna vote for it
Sorry for the bad news
Proud to be a Flownaut!
My work-around so far is to send the adaptive card to each individual that is in the private teams channel. The only thing that you have to consider when doing that is that you cannot list multiple recipients in the action "post to user". So I used a array of email addresses and looped through them.
@Anonymous
I had exactly the same problem some time ago. Unfortunately, Private Channels do not allow external bots to push messages by design. Actually I found this excelllent post from Laura Kokkarinen reporting this same issue:
https://laurakokkarinen.com/the-ultimate-guide-to-microsoft-teams-based-approvals/
Laura confirms that "...when selecting the team and the channel to send the adaptive card to, ensure the channel is not private. You can’t send an adaptive card as a Flow bot to a private channel. If you try to do that you’ll get an error:
Forbidden. The request failed. Error code: ‘BotRequestFailed’. Error Message: ‘Request to the Bot framework failed with error: ‘{“error”:{“code”:”BotNotInConversationRoster”,”message”:”The bot is not part of the conversation roster.”}}’.’.
The error most likely occurs because you can’t add the Flow bot app (or any other Teams app, for that matter) to a private channel..."
Laura opened a User Voice to Teams engineers, in case you wanna vote for it
Sorry for the bad news
Proud to be a Flownaut!
Hello Team,
You are facing this issue because that is by design.
Currently you can go ahead and Post Adaptive cards to Public Channels but not to the Private Channels it is bound to give you an error.
Since you have faced this issue, I would request you to please vote for this feature in the User voice. Each vote counts and maybe this feature is picked up by the product team soon.
Vote here - https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Post-Message-to-a-quot-Private-quot-Channel...
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
My work-around so far is to send the adaptive card to each individual that is in the private teams channel. The only thing that you have to consider when doing that is that you cannot list multiple recipients in the action "post to user". So I used a array of email addresses and looped through them.
Thanx for sharing, @Anonymous !
Contributions like yours make this community great!
Proud to be a Flownaut!
This does not work. Any other ideas?
Above solution does unfortunately not work due multiple approvals can be submitted. Users will not know if other approvers already approved the request. HTTP action should be added to make this a usable solution.
User | Count |
---|---|
88 | |
37 | |
26 | |
13 | |
13 |
User | Count |
---|---|
127 | |
54 | |
37 | |
24 | |
21 |