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 / how to use a for each ...
Power Automate
Answered

how to use a for each to loop through an array of values and make a new record for each one, with each ones value?

(0) ShareShare
ReportReport
Posted on by 432

I have two lists, List A and List B.

 

list A has a single line of text field where the user puts in comma separated values. I can do a split function on this to count how many values the user put in that field, but I need to create a new record for each of those values

so if list a has a column of string "a,b,c", i need to make in list b three records, "a,"b","c", titled that respectively. 

i use for each and the items property but im kind of lost on how to grab each element of the arrays value once i store it in an array?

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @dperez13 ,

     

    Try this

    SudeepGhatakNZ_1-1679879065210.png

     

     

    SudeepGhatakNZ_0-1679879025178.png

    SudeepGhatakNZ_2-1679879102751.pngSudeepGhatakNZ_3-1679879110768.png

     

     

     

  • dperez13 Profile Picture
    432 on at

    can I see the full code for the items property under 'TITLE'

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    That won't be necessary. It does display other columns of my list that are not required in your case.

     

     

  • dperez13 Profile Picture
    432 on at

    No i mean i do want to display each item in the array. so i want to show customer a , customer  b, and customer c in the title like yours. my item() grabbed 5 things instead of the 3 i put in. it grabbed helvitica and arial and a bunch of other css sans-serif font. and put it all in the title.

    its like it put a bunch of css/html in the title??

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    I just have the item()['Title'] in the expression

     

  • dperez13 Profile Picture
    432 on at

    i went to column settings and changed the settings to just plain text, strange how power automate grabs the css as well

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Yes, Plain text is better. Rich text stores HTML

     

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
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard