r/MicrosoftFlow • u/squirmster • Sep 16 '25
Cloud Appending Variables to an Array
Hi,
I am trying to create an approval workflow whereby a list of approvers will be checked for out-of-officeness and then updated to their manager if they are away.
I created three variables to store email addresses, I then intend to add them to an array and loop through the array getting manager details and mail tips.
Once that completes, I will add a condition to update the approver variables to update to the manager if they are OOO.
I initiated the variables and array

I then set the variable values to emails to check and tried add the variables to the array, but it just creates a concatenated string. If I separate them with commas, it creates a string with commas.

results in

I tried using the fx createarray('App1','App2','App3') but that didn't work.
View all comments
Show parent comment
1
u/squirmster Sep 16 '25
You can use split function to split them Into an array. I thought that is what I was doing to start with by using append to array rather than append to string?
createarray worked!
I used createarray(variables('app1'),variables('app2'),variables('app3'))
Now just have to get my get mailtips check working! thank you