cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Highlighted
Community Support
Community Support

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (11,985)