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

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,854)