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 / Composing JSON which h...
Power Automate
Unanswered

Composing JSON which has Elements within Elements

(0) ShareShare
ReportReport
Posted on by 4

I'm trying to compose a JSON in Power Automate which is structured as:

{
 "Connector": {
 "Element": {
 "@SbDL": "1",
 "Objects": [
 {
 "Year": {
 "Element": {
 "Fields": {
 "EmId": "1",
 "JuId": "2"
 }
 }
 }
 }
 ]
 }
 }
}

The composing is done within a apply to each block that contains the Bold/Italic marked JSON above.

 

The result however when I run this flow is structured as follows:

{
  "Connector": {
    "Element": [
      "\"@SbDL\": \"1\",\n \"Objects\": {\n  {\n   \"Year\": {\n     \"Element\": {\n      \"Fields\": {\n       \"EmId\": 1,\n       \"JuId\": 2\n       }\n     }\n    }\n   }\n }\n\r\r\r\r"
    ]
  }
}
 
The bold line above is seen as plain text. I suspect that this has something to do with the Objects/Element but I can't figure out how I can compose it as a normal JSON.
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 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard