cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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
Highlighted
Super User II
Super User II

@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.

Highlighted
Dual Super User II
Dual Super User II

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

 
Highlighted
Community Support
Community Support

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,906)