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

Combine json variables to an array of object

Hi,

 

I have a json object that contains some string parameters that have multiple values inside like, "test1,test2,test3".

My problem is that i have three of those that needs to be combined i some way.

I've been strugling with converting this,

 

{

"ArticleNumber": "1,2,3",

"ArticleName": "Test1,Test2,Test3",

"ArticleAmount": "100,200,300"

}

 

Im trying to get an array of article like this below,

{

"Article": {

"ArticleNumber": "1",

"ArticleName": "Test1",

"ArticleAmount": "100"

},

"Article": {

"ArticleNumber": "2",

"ArticleName": "Test2",

"ArticleAmount": "200"

},

"Article": {

"ArticleNumber": "3",

"ArticleName": "Test3",

"ArticleAmount": "300"

}

}

 

Is this possible? if so, can someone make a suggestion or give some advice.

 

 

1 REPLY 1
Community Support Team
Community Support Team

Re: Combine json variables to an array of object

Hi @ErikLm1,

 

Have you tried with the action Parse JSON?

By using Parse JSON action, you can use the different fields you defined in the schema throughout the rest of your flow as dynamic content.

Please check the following doc for more details:

https://flow.microsoft.com/en-us/blog/five-services-json-http/

Besides, the following blog on A Thesis on the Parse JSON action in Microsoft Flow could be helpful:

http://johnliu.net/blog/2018/6/a-thesis-on-the-parse-json-action-in-microsoft-flow

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
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 Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

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!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

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: 168 members 5,315 guests
Please welcome our newest community members: