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
Unanswered

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.

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 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,422 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard