cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Joe2
Regular Visitor

Array Syntax in Flows

I am trying to create an array from a string using the array() funtion in flows, and cannot figure out the syntax to do so. Is this something that is possible?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Array Syntax in Flows

Hi @Joe2 ,

 

Have your problem be solved?  If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Array Syntax in Flows

@Joe2 

Hey there - It looks like you just drop the value that you want in there:

 

array(triggerBody()['text'])      so, the stuff in the () is what you want to be in the array.  I imagine there's some formatting you'd have to do to the string, though.
20190820a.PNG

Hope that helps...keep us posted.

-Ed-

 

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Dual Super User
Dual Super User

Re: Array Syntax in Flows

Hi @Joe2 

 

array accepts only 1 argument that can be of type string

 

example array('test')

will result in ["test"]

 

If you need more values,

use createarray (this can accept values of any type)

 

createarray('1','2')
output 
[
"1",
"2"
]
 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 
Community Support
Community Support

Re: Array Syntax in Flows

Hi @Joe2 ,

 

Have your problem be solved?  If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (1,107)