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.
Solved! Go to Solution.
Syntax for a list is: set variable %['item0', 'item1']%
Syntax for a list is: set variable %['item0', 'item1']%
I love the app, but the documentation is poor and the syntax not consistent and intuitive.
Thanks for your help though, @fraenK
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.
If you have an existing list, then you just add the individual items through a loop or merge lists
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.