JSON Object in Adobe Campaign Standard

Avatar

Avatar

holmes74338504

Avatar

holmes74338504

holmes74338504

19-08-2020

All, 

 

I've been asked by my client to create Object as part of the Event for a Trigger. When I tried to create it under Collection, the API preview shows that it's a List (Array) vs Object. 

 

 "shippingAddress":[
{
"shippedFName":"string50 #1",
"shippedLName":"string50 #1",
"shippedAddr1":"string100 #1",
"shippedAddr2":"string100 #1",
"shippedCity":"string100 #1",
"shippedState":"string10 #1",
"shippedCounty":"string100 #1",
"shippedPostalCode":"string25 #1",
"shippedCountry":"string50 #1"
},
{
"shippedFName":"string50 #2",
"shippedLName":"string50 #2",
"shippedAddr1":"string100 #2",
"shippedAddr2":"string100 #2",
"shippedCity":"string100 #2",
"shippedState":"string10 #2",
"shippedCounty":"string100 #2",
"shippedPostalCode":"string25 #2",
"shippedCountry":"string50 #2"
}
],

 

Is there a way to create the Shipping Address as an Object?

 

Adobe Campaign Standard JSON transactionalmessage

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ramon_bisswange

Employee

Avatar

ramon_bisswange

Employee

ramon_bisswange
Employee

20-08-2020

No.

You can either define attributes on ctx level or the collection element which defines an array.

Custom objects (with a single instance) can't be defined

Answers (0)