Тёмный

Power Automate Parse a Quote Encapsulated CSV with Commas in Data Columns 

DamoBird365
Подписаться 14 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@mrbismarck
@mrbismarck 14 дней назад
This is great, thanks, Damo. Especially the nested replace commands at the end to do all the work in one Compose!
@M9xer
@M9xer Год назад
Truly amazing. This is the best solution I have found online. No one explains it better.
@DamoBird365
@DamoBird365 Год назад
Glad it helped!
@c.mdsalih
@c.mdsalih 6 месяцев назад
Awesome, It worked for me. Thanks for this video.
@tritonb1
@tritonb1 2 года назад
My CSV has multiple fields in a row empty, so it looks like, (data,,,,data,,,data) as an example. That first step you replace ,, with ,"", ! Should this work when there are multiple empty fields in a row like mine? I seem to be losing columns after the replace.
@DamoBird365
@DamoBird365 2 года назад
Quote encapsulated csvs are a pain if there are empty fields. I would suggest taking a look at the office script demo ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9J6ThPWGaG0.html
@2007pradipta
@2007pradipta 2 года назад
Nice one. But my problem is little different could you plz help me. I have the Array like this ["68642", "47", "68662", "-", "Status At Closure", "\"Closed"] where the last item "Status At Closure", "\"Closed" is single string, since there is a comma in it, a backslash is added to it automatically. The Graph API to inset to Excel might think it as 6 columns (excel table has 5 Columns) and I am getting error since there is a mismatch in Number of Columns.
@DamoBird365
@DamoBird365 2 года назад
You could try using office scripts if you can create a regex? I’ve a video on that solution too.
@tylerkolota
@tylerkolota 2 года назад
Hello Damien, Will this method still work if only the columns with in-data commas have quotes? I think it relies on everything being “,”
@DamoBird365
@DamoBird365 2 года назад
I’m struggling to remember as it was recorded 12 months ago. I think it would be best to test the solution for your own requirements.
@teodorolio8250
@teodorolio8250 2 года назад
Hello Damo, thanks for your sharing, if some column in CSV file with " " as below, I can't follow upper step, could you mind share some hits for me? Name, Salary, age Teodoro, "5,000", 30
@DamoBird365
@DamoBird365 2 года назад
Take a look at this method CSV to Excel Power Automate and Office Scripts Any File Encoding - Free | Fast | Easy ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9J6ThPWGaG0.html
@teodorolio8250
@teodorolio8250 2 года назад
thanks for your sharing again, unfortunately my company blocks Office scripts. I will try another way to solve my problem, thanks again for your support
@shanejones8095
@shanejones8095 2 года назад
This solution didn't work for my dataset.. The lines of my JSON is not split correctly. example below. { "FFOrderID": "13161,48,60,",
@shanejones8095
@shanejones8095 2 года назад
Update: I removed 1 comma from the first replace expression. everything was split correctly, except for the "title" column which has double commas in it.
Далее
How to parse complex JSON in power automate
20:43
Просмотров 81 тыс.
Лучше одной, чем с такими
00:54
Living life on the edge 😳 #wrc
00:17
Просмотров 3,5 млн
How to Extract Data from PDF with Power Automate
29:30
Просмотров 225 тыс.
PowerAutomate - Compare arrays with objects
7:46
Просмотров 1 тыс.
Parsing a CSV file with JavaScript
21:21
Просмотров 8 тыс.
How to parse a CSV file with Power Automate
8:04
Просмотров 36 тыс.
Get Rows from CSV file using Power Automate
15:13
Просмотров 43 тыс.
Лучше одной, чем с такими
00:54