cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Joe2
Level: Powered On

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?

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.

Super User
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 Team
Community Support Team

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.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 193 members 4,055 guests
Please welcome our newest community members: