web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Parse CSV to JSON

(1) ShareShare
ReportReport
Posted on by 51

Hi,

I'm having a bit of a struggle working out if it's possible to parse a CSV file to JSON in PAD.

I've got a single line CSV file of three columns that I need to extract the data from and add to a JSON body request - I can do it via the web app without issue, but presently the web flow is taking anywhere between 90-120 seconds to start and that's too long for this process (as there's some other automation waiting on it outside of PAD) so ideally the more we can keep on-premise in this instance the better.

 

I.e. the CSV data looks like this:

 

4B5991E6John TestmanTest Company

 

But I need to take those three fields and add it to this body (with some text splitting for the name along the way.) 

{

"lastName": "Testman",

"firstName": "John",

"licence": null,

"address": null,

"city": null,

"postalCode": null,

"country": null,

"phone": null,

"type": "CARD",

 "number": "4B5DF266",

"chipId": null,

"role": "DRIVER",

"state": "ACT",

"validity": null,

"cardVersion": 0,

"companyNumber": 0,

"companyName": "Test Company",

"companyAddress": null,

"companyCity": null,

"companyPostalCode": null,

"companyCountry": null,

"companyPhone": null,

"handscanEnabled": null,

"fingerprintEnabled": null

}

 

Coming up a bit short on a solution, if anyone could help with showing the steps that would be very much appreciated 😀

  • Verified answer
    kylebunkin Profile Picture
    51 on at

    I sussed a method for this (it might be ugly, but it works in about 1.5 seconds so I'll take it) 

     

    1 - Convert the JSON to a custom object, within the custom object add the variables where required.

    2 - Convert custom object back to JSON using the %JsonAsCustomObject% variable

     

    That was it... what can I say? 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard