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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Spliting variable

(0) ShareShare
ReportReport
Posted on by 33

Hello,

i am very new to Flow and got stuck with a problem.

I am passing variable from PAD

ryrytis_0-1622524593886.png

and i want to create Teams channels for both of these.

i tried split action in order to apply For each action, but it doesn't seem to be right:

ryrytis_3-1622524815784.png

 

Please advice, how could i properly adjust the flow in order to create channels for each of the variables.

I have the same question (0)
  • Paulie78 Profile Picture
    8,418 Moderator on at
    Re: Spliting variable

    Try:

    split(variables('ListOfChannels'), decodeUriComponent('%0D%0A'))
  • ryrytis Profile Picture
    33 on at
    Re: Spliting variable

    Hello, Paulie,

    it almost worked (i am getting third empty element). how do i eliminate it?:

    ryrytis_0-1622526375922.png

    thanks

  • Verified answer
    Paulie78 Profile Picture
    8,418 Moderator on at
    Re: Spliting variable

    After your compose action add a filter array action like this:

    FilterArray.png

    In the from field, use the output from your compose action. On the left side of the condition use the expression:

    length(item())

    Then you'll have only the populated values remaining.

  • Verified answer
    ryrytis Profile Picture
    33 on at
    Re: Spliting variable

    Perfect. it works:) thank You very much

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard