cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Collect JSON Data from Multiple Web Links and Write to Single Excel Table

Hello,

 

We use software from a third-party vendor and we need to capture their data on a daily basis.

 

Their output sits on the web and we can capture it in Flow via HTTP GET. The path is https://api.SERVER.com/DATA/###/flow?start=0&api_token=PASSWORD. #### has a static range from 100 to 999. The PASSWORD is essentially a static constant. 

 

We are able to build a flow that captures data in JSON format from a specific path, e.g. https://api.SERVER.com/DATA/111/flow?start=0&api_token=PASSWORD.

 

However, we are having issue with converting this into a loop, with issues being:

(1) concatenating/union/appending JSON files,

or (2) if converting each JSON data batch, incrementally appending multiple rows to Excel,

and (3) properly skipping blank data sets (some of the urls have no record and return errors).

 

Could you please help us with building the flow?

4 REPLIES 4
Anonymous
Not applicable

 

This is how our flow is currently setup:

 

flow.png

 

 

Anonymous
Not applicable

 

This is how our flow is currently setup:

 

flow.png

 

 

Hi, @ rotator,

 

Could you please share a full screenshot with details of the configuration of your flow?

 

 

For your first question,do you want to concatenate/union/append JSON files?

Please take a try to use "Append to array variable" to realize your needs.

 

For your second question,could you please explain more about the converting each JSON data batch?

if you want to insert date to excel, you could use the "Insert row" action.

 

For your third question,I afraid  skipping blank data sets is not supported in microsoft flow currently,

You could post this idea in the Flow Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

 

 

Regards,
Alice Zhang

Anonymous
Not applicable

Alice, thank you for your reply. Here is the full flow.flow_01.PNG

 

flow_02.PNG

 

 

Based on your resposnes above, it sounds like I may need to ajdust the construction of the flow. Could you plesae give me a some guidence on how to change/adjust the blocks?

 

Right now my flows fails with good data. The schema was constructed by copying in the exactly same sample payload that it currently fails on.flow_error_jsonparse.PNG

 

 

 

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (74,302)