Date not populating on alert

Anonymous
Not applicable

Hi all,

Probably a simple omission on my part, although would appreciate some help.

I have a date field on a form that is then used as a token in an alert. For some reason when the alert is received the date is blank.

If I inspect the lead record the date has been populated. Additionally if I send a test email with the lead populated the date comes through as expected.

I have added a wait step in case the alert was being sent before the record could be populated albeit to no avail. 

Thanks in advance

25 REPLIES 25
Josh_Hill13
Level 10 - Champion Alumni

Can you send us screen shots?

Anonymous
Not applicable

Its the field 'styling session date'

Anonymous
Not applicable

I have a similar situation myself.

Hope we get a solution

Anonymous
Not applicable

I just added birthday field to see if it came across and it did. Its a strange bug.

Anonymous
Not applicable

Very odd.  I used the same field in a landing page and it populates correctly and even on "send sample email" it pushes / pulls the data correctly. Just not on an alert email or confirmation email back to customer.

Hope there is a solution.

Anonymous
Not applicable

Exactly the same situation. 

SanfordWhiteman
Level 10 - Community Moderator

Guys, can you try this with a one-line Velocity script instead?

Like

${Lead.Styling Session Date}

Make sure that field is checked off in the tree of fields on the right side of Velocity Editor.

Anonymous
Not applicable

I have not used Velocity (and am not a developer my self)

SanfordWhiteman
Level 10 - Community Moderator

You don't have to be a dev for this test -- just create a new Email Script {{my.token}}, substituting your lead field for Matthew's of course.

Then add the new {{my.token}} to the email.

Anonymous
Not applicable

Thanks for the help Sanford

underscores or %20 (html ascii code for space) breaks the token and the email doesnt validate.

But good insights into the spaces been an issue.

SanfordWhiteman
Level 10 - Community Moderator

Doesn't validate?  An unrecognized variable shouldn't do that.  Try it with:

     ${Lead.Some_Random_Field_Name_XYZpdq123}

That should validate and send fine (the email will have the literal text "${Lead.Some_Random_Field_Name_XYZpdq123}").

%20 is the URL-encoded representation of a space character (HTML-encoded is  ) -- neither of these would ever work in a Velocity variable.

Anonymous
Not applicable

With you now

The field doesnt populate still for me. I'll see if support comes back with anything

Anonymous
Not applicable

Looks like they are referring to you in this email @David

pastedImage_0.png

Anonymous
Not applicable

Seems that way,

hoping for a resolution on this

Anonymous
Not applicable

Chris West​ have you had any response as yet?

Anonymous
Not applicable

Just that support is working on it

Anonymous
Not applicable

Chris West​ Have you had a response as yet? Crickets at my end

Anonymous
Not applicable

pastedImage_0.png

SanfordWhiteman
Level 10 - Community Moderator

So when you put the random (nonexistent) field, with underscores, in the Velocity script, what happens? Does it validate? But with your actual field with underscores, it doesn't validate? These would be important findings to share w/support even if they are not solutions.

The fact that the field doesn't appear with underscores when you drag it into the Velocity Editor from the tree on the right is a big one.

Anonymous
Not applicable

pastedImage_0.png

Thanks for jumping in  Sanford Whiteman Did I set up the script wrong?

pastedImage_0.png