AnsweredAssumed Answered

How do you access the most recent item in a custom object?

Question asked by Connor Clausen on Jul 5, 2018
Latest reply on May 14, 2019 by Sanford Whiteman

We use custom objects to store data pertaining to our customers' homes.

 

Since a customer could own more than one home, the result is multiple items (or homes) in the "propertyDetails" custom object.

 

Whenever I use scripted email tokens to populate an email with this data, it uses the oldest item.

 

Here's the Velocity script that Marketo uses by default:

 

${propertyDetails_cList.get(0).streetAddress}

 

Can this script be changed to reference the most recent item's Street Address?

 

Thanks in advance!

Outcomes