Does anyone know how to insert an entire JSON object into a single cell of a CSV?
The JSON data is stored in a multiline text field inside of a sharepoint list.
I am using the command Data Operation - Create CSV Table.
Then the command SharePoint - Create File, outputting as .csv
When I open the csv file, the JSON data is spanning multiple lines and I can't figure out why. I have tried placing double-quotes around the data but that does seem to work.
Solved! Go to Solution.
Here is what I did to solve the problem. Not sure if there is a better way, but this worked. If someone know how to deal with JSON data with commas please let me know.
I added pipe character "|" at the end of all the data columns accept for the last one.
Then I used two replace commands to force everything to be pipe delimited into a text file. One replace adjusts the header, the other adjusts the body data.
replace(replace(body('CreateCSVTable-CustomConfig'),'|,','|'),'ID,Title,CDN,Modified,ModifiedBy,Created,CreatedBy,JSONData','ID|Title|CDN|Modified|ModifiedBy|Created|CreatedBy|JSONData')
This can then be loaded into Excel cleanly using Data -> Load Text/CSV.
Make sure to pick the "Custom" delimiter option and the character pipe "|".
Here is what I did to solve the problem. Not sure if there is a better way, but this worked. If someone know how to deal with JSON data with commas please let me know.
I added pipe character "|" at the end of all the data columns accept for the last one.
Then I used two replace commands to force everything to be pipe delimited into a text file. One replace adjusts the header, the other adjusts the body data.
replace(replace(body('CreateCSVTable-CustomConfig'),'|,','|'),'ID,Title,CDN,Modified,ModifiedBy,Created,CreatedBy,JSONData','ID|Title|CDN|Modified|ModifiedBy|Created|CreatedBy|JSONData')
This can then be loaded into Excel cleanly using Data -> Load Text/CSV.
Make sure to pick the "Custom" delimiter option and the character pipe "|".
I typed an apostrophe, then paste. This worked for me.
Hi!
I'm not able to execute this, could you please paste a picture of the entired flow?
Thanks in advance
Hello,
Could you please share a detailed explanation on your solution? (with pics and result). I'm new in PA.
Thanks in advance
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
25 | |
24 | |
23 | |
23 | |
19 |
User | Count |
---|---|
58 | |
40 | |
40 | |
29 | |
24 |