0

I Require the json objects in this particular order, so I have composed this particular order in the compose data operation, but when the logic app triggers this is automatically changing into alphabetical order.

If it changes, the data is not being accepted by the third party service it is throwing internal server error.

If I change the order and check in psotman i am getting expected response.

            {
              "@number":"1",
              "Weight":2,
              "Dimensions":{
                 "Length":1,
                 "Width":2,
                 "Height":3
              },
              "CustomerReferences":"Piece 1"
           }

Please let me know how this can be achieved.

Thanks advance

Ikhtesam Afrin
  • 897
  • 1
  • 1
  • 6

1 Answers1

0

I have reproduced it at my environment and got the expected result

Design:

enter image description here

In Content, I have taken triggerBody().

Schema

{
"properties": {
"@@number": {
"type": "string"
},
"CustomerReferences": {
"type": "string"
},
"Dimensions": {
"properties": {
"Height": {
"type": "integer"
},
"Length": {
"type": "integer"
},
"Width": {
"type": "integer"
}
},
"type": "object"
},
"Weight": {
"type": "integer"
}
},
"type": "object"
}

enter image description here

enter image description here

Output:

enter image description here

enter image description here

Ikhtesam Afrin
  • 897
  • 1
  • 1
  • 6