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 / Adding multiple string...
Power Automate
Answered

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
    Microsoft Employee 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 570

#2
Valantis Profile Picture

Valantis 405

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard