How do I reference a second level custom object on $sorter token?

Highlighted
Level 1

How do I reference a second level custom object on $sorter token?

Hi

We are using the formula below successfully in a token which brings the last product for a Membership. 

 

#set( $MembershipMostRecent = $sorter.sort($Membership__cList,"CreatedDate:desc") ) 
#set( $LatestMembershiDdetails = $MembershipMostRecen[0] ) 
The product of the latest membership is ${LatestMembershiDdetails.Product_Name__c}

 

Now we would like to bring the latest price which only sits on the Membership>>renewal. 

How do you reference Membership renewal list on the formula above?@s

 

Marketo Price Field

${Membership__cList.get(0).Membership_Renewal__cList.get(0).Sales_Price__c}

 

thanks for your help, 

Maria Riley

Tags (1)
2 REPLIES 2
Highlighted
Level 10 - Community Moderator

Re: How do I reference a second level custom object on $sorter token?

Y'can't access 2nd-level CO records.

Highlighted
Level 1

Re: How do I reference a second level custom object on $sorter token?

Thanks, it confirms what we thought,...

Cheers, 

M