cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
v-alzhan-msft
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

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

RezaDorrani
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

 
v-alzhan-msft
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,708)