How do I reference a second level custom object on $sorter token? | Community
Skip to main content
Maria_Riley
Level 2
May 15, 2019
Question

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

  • May 15, 2019
  • 1 reply
  • 1720 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
May 15, 2019

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

Maria_Riley
Level 2
May 15, 2019

Thanks, it confirms what we thought,...

Cheers, 

M