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.