Difference in velocity script behaviour in email preview and send sample | Community
Skip to main content
June 16, 2016
Solved

Difference in velocity script behaviour in email preview and send sample

  • June 16, 2016
  • 2 replies
  • 2392 views

Hello,
I am getting different behaviour or email script token in preview email and send sample option, I am using foreach loop to get multiple record of custom object associated with lead. In preview mode I am able to see multiple records where as in send sample email only first record has been rendered.
I my opinion its velocity script is not performing as it suppose to be in send sample.
Please anyone having similar issue, or got additional info?

- Indu

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

hi Indu Poudel

Did you get it to work? I think you must already have figured it out by now.

Did you try to test against multiple test leads with different custom object records?

For testing velocity scripts, I generally do not rely on preview or send sample. I actually run a couple of leads with custom object records through a 'test' smart campaign to actually send the email. That's the best way to test in my view.

Hope this helps

Rajesh Talele

2 replies

June 16, 2016

I haved loged support ticket as well for this, but Support people said velocity script part is not supported by support team.
What I see here is not problem in script itself, but the behaviour or email in two situation.

here is the support ticket number : 00598438

Kenny_Elkington
Adobe Employee
Adobe Employee
June 16, 2016

Are you sure that you're impersonating the same record between the preview and the sample?  Different numbers of available records would change the outcome of the rendering.

June 20, 2016

@@Kenny Elkington​ I ​am using same lead record in preview and send sample, the loop condition does not work in send sample, it display onlyn 1st record, index(0) record, even though when lead has multiple custom object record associated with it.

Accepted solution
July 9, 2016

hi Indu Poudel

Did you get it to work? I think you must already have figured it out by now.

Did you try to test against multiple test leads with different custom object records?

For testing velocity scripts, I generally do not rely on preview or send sample. I actually run a couple of leads with custom object records through a 'test' smart campaign to actually send the email. That's the best way to test in my view.

Hope this helps

Rajesh Talele