Pulling Custom Object data using Velocity Script not working | Community
Skip to main content
Elsa_Man3
Level 2
Apr 28, 2020 6:02 PM UTC
Solved

Pulling Custom Object data using Velocity Script not working

We have data stored in a SFDC custom object that is 2 levels down to the Contact record (Contact --> Purchaser Profile --> Ticket) and according to Marketo, that SHOULD pull through in Velocity Scripting (it's only 3 levels down that's a no-go). But we aren't able to for some reason. 

 

But if we go try to pull 2 levels down through a different route (Contact --> Order --> Order Line Item) we are successful. 

 

The only difference I can see from pulling data from Ticket vs Order Line Item, is that the Ticket is a Look-up relationship to Purchaser Profile, whereas Order Line Item is a Master-Detail relationship to Order. Does anyone know if that makes a difference? 

 

Thanks in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Apr 28, 2020 8:18 PM UTC

Yep!

4 replies

SanfordWhiteman
Level 10
Apr 28, 2020 6:07 PM UTC
That's exactly what makes the difference.
Translate
Elsa_Man3
Elsa_Man3Author
Level 2
Apr 28, 2020 7:46 PM UTC

thanks Sanford! I should note that the Contact --> Order is a Lookup relationship too, but we are able to successfully pull in fields from the Order object. Does the anti-lookup rule not apply here because it's directly tied to the Contact?

Translate
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Apr 28, 2020 8:18 PM UTC

Yep!

Translate