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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,053)