Skip to main content
Level 3
August 19, 2020
Solved

JSON Object in Adobe Campaign Standard

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?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
bisswangAccepted solution
Adobe Employee
August 20, 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

1 reply

bisswangAdobe EmployeeAccepted solution
Adobe Employee
August 20, 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

Translate