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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Common Data Service - ...
Power Automate
Unanswered

Common Data Service - List Records - Bad JSON on expand?

(0) ShareShare
ReportReport
Posted on by 20

Hello Flow Community,

 

I'm using the Common Data Service List Records step to pull some data out of an entity including some properties from a related entity using the expand box. The problem I seem to be having is that the JSON that is returned seems to be badly formatted for the related properties.

UrsineWelles_0-1592604313213.png

This is end of the first record that is returned:

 "hs_prescriptionmedication": false,
 "hs_MainContact": "{\r\n \"address1_postalcode\": \"NW10 6BA\",\r\n \"contactid\": \"07859a78-5d8a-ea11-a811-000d3a654e39\"\r\n}"
 },

 hs_prescriptionmedication is a property of the main entity and hs_MainContact is the related properties. Rather than being returned as more nested JSON items the related properties are being returned as the JSON as a string with the whole item quoted, \r\n printed explicitly and the internal quotes escaped. This means I can't use the Parse JSON step to pull out the related properties because rather than the nicely nested JSON they are this odd string instead. In examples such as this one the related properties come as properly formatted JSON.

Is there something I need to do to get the related properties in properly formatted JSON?

Any help gratefully received!

Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard