cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
bai-simon
Level: Power Up

Error Posting Message to Dynamic Teams Channel

I built the following flow:

 

1. SQL STATEMENT

 

Result (dummy data):

CityText
AmsterdamThe temperature is 14 degrees celcius today
BerlinThe temperature is 11 degrees celcius today
CopenhagenThe temperature is 15 degrees celcius today

 

2. FOR EACH CONTAINER

 

2.1 CREATE TEAMS CHANNEL

Team: My Team

Channel: items('Apply_to_each')?'['City']

 

2.2 POST TO TEAMS CHANNEL

Team: My Team

Channel: items('Apply_to_each')?'['City']

Message: items('Apply_to_each')?'['Text']

 

ERROR 

"error": {
"code": "BadRequest",
"message": "Bad Request",
"innerError": {
"request-id": "",
"date": "2019-12-06T07:58:11"
}
 
Whatever I do or try, I get this error in step 2.2.
 
Do you have any idea what could solve this?
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Error Posting Message to Dynamic Teams Channel

Hi @bai-simon,

 

If post a message to Channel, the field *Channel should be Channel ID, it is a string of characters, not its display name:

Annotation 2019-12-09 092647.png

So, you should get the Channel ID according to the displayName by filter query, then use the Channel ID to put into the field *Channel to post massage.

 

Best Regards,
Community Support Team _ Lin Tu
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

2 REPLIES 2
Community Support Team
Community Support Team

Re: Error Posting Message to Dynamic Teams Channel

Hi @bai-simon,

 

If post a message to Channel, the field *Channel should be Channel ID, it is a string of characters, not its display name:

Annotation 2019-12-09 092647.png

So, you should get the Channel ID according to the displayName by filter query, then use the Channel ID to put into the field *Channel to post massage.

 

Best Regards,
Community Support Team _ Lin Tu
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

bai-simon
Level: Power Up

Re: Error Posting Message to Dynamic Teams Channel

Thanks, that fixed it! It is interesting because if I put the name of the channel as a string, it works, but as a parameter, it needs the Id.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,727)