Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 4th edition of the Campaign Community Lens newsletter is out now!
SOLVED

JSON Object in Adobe Campaign Standard

Avatar

Level 4

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?

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

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