Question

Nested JSON brackets POST

  • 27 June 2022
  • 1 reply
  • 20 views

Hi guys, 

Example JSON:

"ConsumerDetails": {
        "DeliveryAddress": {
            "Company": "",
            "FirstName": "Kelvin",

}} 

 

DATA field:

= ConsumerDetails__DeliveryAddress__Company
=ConsumerDetails__DeliveryAddress__FirstName

That works!

 

But!

What if i need to POST the following in the DATA field?:

  "Lines": [{`

        "Sku": "1001",
        "OrderedQuantity": 1,

}]

 

Ive tried:
Lines__sku
Lines__lines__sku
Lines[lines]sku
Lines[lines]__sku

 

The [ ] markup the API required me to send the ‘lines’ data in is not recognized.

Anyone know how to do this?

 

Tnx in advance.

 

 

 


 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +14

Hi @Michael Hummel 

Good question.

Please post screenshots with how your Zap step is configured in order for us to have more context, thanks.