Looping through Custom Objects
Hi All, I have a script that I just can't get working, I am using it to learn, but any help would be appreciated.
I have a custom Object called car with the following fields:
Make
Model
Year
Vin (Dedupe)
EmailLinkToPerson (Dedupe)
I am trying to write a foreach loop to show me all records that has a car associated with it. this is my code but it keeps returning 0 when there are 35 records.
#set ($count = 0)
#foreach ($item.emailLinkToPerson in $car_cList)
#set ($count = $count + 1)
#end
number of Cars linked to a person: $count
to test this I have added the following token snippet to an email draft (possible to use LP instead? or whats a better why to test scripts)
{{my.Cars_token}}
