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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding multiple string...
Power Automate
Unanswered

Adding multiple strings as separate items to a list

(0) ShareShare
ReportReport
Posted on by 75

I have multiple strings that I would like to add each as an item into a list.

I tried separating them with commas with the "Add Item to list" Action, but it treats them all as one long item. I have tried several formats.

 

abc, def, ghi
"abc", "def", "ghi"
%"abc"%, %"def"%, %"ghi"%

 

But they are all added to item 0

 

Interestingly enough, when adding exiting variables, it does work.

 

 

%Matches[0]%, %Matches[1]%

 

 I doubt the only option is to use a separate action for each. Or alternatively import them from a csv file.

Any help would be greatly appreciated.

I have the same question (0)
  • Verified answer
    fraenK Profile Picture
    2,125 on at

    Syntax for a list is: set variable %['item0', 'item1']%

  • Lipsitz Profile Picture
    75 on at

    I love the app, but the documentation is poor and the syntax not consistent and intuitive.

    Thanks for your help though, @fraenK 

  • Lipsitz Profile Picture
    75 on at

    Also, when using "set variable" you are not really adding an item, just manually inserting items at known location.

    While it may work for initial list, if you do it with populated list it will overwrite items. not merely append an item to the end of the list.

  • fraenK Profile Picture
    2,125 on at

    If you have an existing list, then you just add the individual items through a loop or merge lists

  • NickF Profile Picture
    2 on at

    This syntax is not working for me. I want to create a list with the values CH and UK. When I add each one in a separate Add Item to List action, I can display each value separately in a loop. When I put in %['CH','UK']%, the items are concatenated. Can anyone help? I don't want separate actions for every item I put in.  

  • Robinh0 Profile Picture
    7 on at

    Hi. Thank you, it works! It adds it as a list within a list, so I did a for loop on each item in the list to add it as an individual row. Thanks.

  • Community Power Platform Member Profile Picture
    on at

    Please guide with detailed steps

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard