cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ingrtodd
Regular Visitor

Unable to send Teams message to Shifts userId

I am trying to send a Teams message to the user assigned to the next shift.  I get the list of all team shifts for the next 24 hours, then use Get user profile (V2) to lookup the userId assigned to the shift.  Then I try to "Post a message as the Flow bot to a user" using either the display name or the mail returned from the user's profile. I have tried using the display name and mail properties from user's profile.  

 

BKT899mggE.png

 

The post returns the following error that's not at all clear to me.

 

{
  "error": {
    "code""MissingOrInvalidBotMessageRequest",
    "message""The specified Teams flowbot message request is missing or invalid."
  }
}
1 ACCEPTED SOLUTION

Accepted Solutions

 

Hi @ingrtodd ,

 

Please try to click Show more to check if the message body is empty:

60.PNG

Please ensure that the message body is not empty:

59.PNG

Although this field is not marked as required, the test found that it cannot be empty.

Please try again.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

14 REPLIES 14
efialttes
Super User III
Super User III

Hi!

Can you share a screenshot from your current flow design, making sure input details from 'Post a message as the flow bot' action block are shown?

Thanx!

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Added to the original post.  Thank you!

Hi!

Is the Message input empty? I mean, in 'Post a message from flow bot to a user'

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



No, it is not empty.  I've redacted the recipient email address.

yXKyvD1PBu.png

a7nH9rGG8X.png

Weird... there must be something really simple we cannot figure out yet...

Did you try to implement a second dummy Flow just for troubleshooting purposes, manually triggered, just add 'Post a message as a flow bot to a user', fill manually the this same target user email address, and see if the error persist?

Thanx!

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Interesting.  Same results.  

Probably it's not the reason of the problem, but... did you already added Flow Bot to the Team?

 

https://powerusers.microsoft.com/t5/General-Power-Automate/Post-Message-as-flow-bot-unauthorized/td-...

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Thank you for the suggestion.  I confirmed I'm able to send messages to a channel for the team.  I'm just unable to send messages to individual users.  Perhaps that's a tenant-wide setting?  

Hi!

Did you try to post messages to different users, or the problem is always when posting to the same user? Is he/she member of the Team?

 

I cannot think of anything else ☹️

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



I appreciate the assistance!  

 

Unfortunately, it's the same error regardless of team member I'm trying to send to.  Even when trying to send to myself, surprisingly.

Hello @ingrtodd

Have you tried to fill the message field although is not mandatory?: flow.png

 Anyway, some time ago, there were similar problems according to this thread: https://powerusers.microsoft.com/t5/Building-Flows/Teams-Post-message-as-the-Flow-Bot-not-working/td...

Hope it helps!

Ferran

 

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Thank you for the suggestion.  I have tried this, but the problem persists.

 

Hi @ingrtodd ,

 

Please try to click Show more to check if the message body is empty:

60.PNG

Please ensure that the message body is not empty:

59.PNG

Although this field is not marked as required, the test found that it cannot be empty.

Please try again.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you.  I'm not sure what might be different between previous tests and today, but it's working now.  I appreciate the input!

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,110)