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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Check if a channel un ...
Power Automate
Answered

Check if a channel un a team exists yet

(0) ShareShare
ReportReport
Posted on by 28

I am trying to check if a channel exists under a team. When I create a channel, a group chat is associated with it. I just want to inform the user that if they enter the name of an already existing channel, they will be informed with another adaptive card indicating that the channel exists. I've tried this solution, but I've entered a loop where Power Automate was creating an infinite number of group chats.

mad95_1-1689931832923.png

 

mad95_0-1689931707753.png

 

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @mad95  ,

     

    After you capture the response from the user using an adaptive card, you can use the List Channels action in Power Automate and Check if a Channel with a same displayName exists already. 

     

    If the channel Exists , then notify the user by sending an adaptive card else create a New Channel.

     

    If this helps , please give this answer a thumbs up and accept this as a solution.

     

    Thanks,

    Sanmesh

  • mad95 Profile Picture
    28 on at

    hi, as you can see from the images, it's exactly what i did(second image first action), but the problem is that i think that the loop condition is wrong, cause it is looping i think for the numbers of channel he sees under the team or something like that

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @mad95  ,

     

    Can't understand the language.

     

    Do not enter the loop try to access the response using the expression.

     

    I hope you are capturing only one Name in a single adaptive card

  • mad95 Profile Picture
    28 on at

    mad95_0-1689933625681.png

    here's the english version,sorry

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @mad95  ,

     

    Can you send the adaptive card JSON payload instead so that I can test it at my end?

     

    Also what is the trigger of the flow?

     

  • mad95 Profile Picture
    28 on at

    {
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
    {
    "type": "ColumnSet",
    "columns": [
    {
    "type": "Column",
    "width": 2,
    "items": [
    {
    "type": "TextBlock",
    "text": "Information Gathering",
    "weight": "Bolder",
    "id": "Title",
    "size": "ExtraLarge"
    },
    {
    "type": "TextBlock",
    "text": "Please provide the name of the Project and the people involved. ",
    "isSubtle": true,
    "wrap": true,
    "id": "acInstructions",
    "size": "Large"
    }
    ]
    }
    ]
    },
    {
    "type": "Container",
    "items": [
    {
    "type": "TextBlock",
    "text": "Prject Name",
    "wrap": true,
    "size": "Medium"
    }
    ]
    },
    {
    "type": "Input.Text",
    "id": "acProjectName",
    "placeholder": "{Project Name}"
    },
    {
    "type": "Container",
    "items": [
    {
    "type": "TextBlock",
    "text": "People Involved",
    "wrap": true,
    "size": "Medium"
    }
    ]
    },
    {
    "type": "Input.Text",
    "id": "acPeopleInvolvedEmail",
    "placeholder": "{People Involved email Address}"
    },
    {
    "type": "Container",
    "items": [
    {
    "type": "TextBlock",
    "text": "People Involved 1",
    "wrap": true,
    "size": "Medium"
    }
    ]
    },
    {
    "type": "Input.Text",
    "id": "acPeopleInvolvedEmail1",
    "placeholder": "{People Involved email Address}"
    },
    {
    "type": "Input.ChoiceSet",
    "placeholder": "Placeholder text",
    "choices": [
    {
    "title": "RFQ",
    "value": "YES"
    },
    {
    "title": "SoW",
    "value": "NO"
    },
    ],
    "style": "expanded",
    "id": "acRFQSOW",
    "isMultiSelect": false
    },
    ],
    "actions": [
    {
    "type": "Action.Submit",
    "title": "Submit"
    }
    ]
    }

  • mad95 Profile Picture
    28 on at

    when keywords are mentioned

    mad95_0-1689933975140.png

     

  • mad95 Profile Picture
    28 on at

    do you need something else?

     

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @mad95  ,

     

    I don't know why your are entering an apply to each loop. But here is my flow image. I have created a flow with manual trigger.

     

    In the Filter Array , on the right hand side , I am using the Project Name to filter that array. And in the condition I am using the length of the filter array.

     

    Screenshot (453).png

     

    Hope this helps , if this helps , please give this a thumbs up and accept this as a solution.

     

    Thanks,

    Sanmesh

  • mad95 Profile Picture
    28 on at

    what's inside project name var and what's the function in the condition?

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 173 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 95 Super User 2026 Season 1

Last 30 days Overall leaderboard