Saltar al contenido

Pinpoint Template helper

0

I have following script in my template which cause some failure when I run the campaign. If I remove this portion then campaign send emails.

{{#gt Attributes.Length "100"}} You have {{Attributes.Count}} schools {{else}} You no schools. {{/gt}}

If I remove the above text emails are being sent. Properties Length and Count all are there. AWS support says its valid but so far they failed to help. The campaign status says it ran successfully. I cannot see any events posted. Not sure what's happening. Any help is greatly appreciated.

thanks!

preguntada hace 4 años452 visualizaciones
1 Respuesta
0

The #gt helper can only compare like data types. Your script is comparing Attributes.Length (presumably a float or double number data type) against "100", which is a number string. This may or may not be the issue, but it's one I've come across with comparison helpers. You might try it without the quotes around 100 and see if that works.

respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.