cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
meyer
Frequent Visitor

Create csv table in filter array with Parse JSON

Been struggling for a while on this. Flow runs through with no errors but data wrong.

 

Need to extract data from SP to separate csv files based on "Supplier" column.

On selecting Custom Columns in Create CSV Table it extracts same record to all files, but when selecting Automatic columns it adds unwanted lines from Parse JSON {@odata.type""...}.

 

Parse JSON

meyer_0-1656604202710.png

 

Create CSV on Columns = Automatic which is correct but with {@odata.type}

meyer_1-1656604270622.png

 

Custom Columns from Create CSV Table, same entry in all the files

meyer_2-1656605429271.png

 

CSV columns are chosen from Parse JSON

meyer_3-1656605650197.png

 

I have tried adding a "Select" to only show certain columns before and after filter array but only gives errors.

 

Below is the flow...

meyer_4-1656605767398.png

 

 

Thanks in advance...

 

 

6 REPLIES 6
David-
Solution Sage
Solution Sage

Is your Get Items action within the apply to each, and is it filtered on the condition for generating separate CSV files?

meyer
Frequent Visitor

Complete flow - Should it be inside the apply to each? if so "apply to each" or "apply to each 2"?

 

meyer_3-1656610603922.png

 

 

meyer_1-1656610432028.png

 

meyer_2-1656610483831.png

 

 

You said it gives you error when using Select. Can you give a screenshot of the error?

And ss the data you're tryin to select?

meyer
Frequent Visitor

Inserting the select after filter array it gives error on "Create File" saying that file already exists, but none of the files has been created yet and folder still empty. And adding select anywhere else it gives same result as "Automatic Columns" with {@odate.type}

 

For Select I tried both Parse JSON and Get_Items on dynamic content.

 

Create file below.

meyer_0-1656659943531.png

 

Try to toggle concurrency control on apply to each. And set the settings to 1. 

 

Click 3 dotted lines > settings > concurrency control > move the slider to lowest setting or 1. 

 

Can't give you screenshot I'm using phone

meyer
Frequent Visitor

Should i try this with the select or without?
Select must be before create csv table then?

 

Tried without select and concurrency control = 1 but now columns is blank

meyer_1-1656665086153.png

 

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,199)