web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create a channel withi...
Power Automate
Unanswered

Create a channel within teams through power automate

(0) ShareShare
ReportReport
Posted on by 2
Gents, I'm trying to create a channel within teams named with the body content from a message. I'm very new in power automate programming that explain probably my mistake. Here's the code I try to post which doesn't work saying that it's over 50 characters (maximum authorized length to name a channel within teams)
{
"type": "OpenApiConnection",
"inputs": {
"parameters": {
"body/displayName": substring(
replace(triggerBody()?['body']?['content'],'/','-'),
0,
50
)
"groupId": "46bf392c-30dc-48ae-820b-7941d026e3ba",
"body/membershipType": "standard"
},
"host": {
"apiId": "/providers/Microsoft.PowerApps/apis/shared_teams",
"connection": "shared_teams",
"operationId": "CreateChannel"
}
},
"runAfter": {}
}
 
Is there someone that could help me ? Thanks.
Categories:
I have the same question (0)
  • chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
    Hi 
     
    Which trigger are you using? The When a new channel message is added?
     
    Can you please show your flow and the exact error message?
     
    Thanks!
  • LL-19051605-0 Profile Picture
    2 on at
    Dear @chiaraalina, first, thanks to pay attention to my request. The trigger I use is when a new channel message is added, you're right. And the error message is the following "Flow run failed. Action 'Create_a_channel' failed: Channel.DisplayName can't have more than 50 characters." It look like that the formula doesn't work and that power automate take the full formula as the Channel name.
     
    Thanks for your support.
     
    KR 
     
    Loïc.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard