SOLVED

Re: Help with Velocity: Why won't my TriggerObject values populate?

Go to solution
Douglas_Meierdi
Level 2

Help with Velocity: Why won't my TriggerObject values populate?

The Campaign Smart List:

Trigger - Job is Updated (Custom Object)

Velocity Script Token:

<p align="center">

  <a href="https://www.upcounsel.com/job/message/${TriggerObject.ucid}?aid=${TriggerObject.attorneyId}" style="color: #ffffff; width: 175px; line-height: 30px; display: inline-block; text-align: center; font-family: Helvetica; text-decoration: none; background-color: #00C76B; border-radius: 3px;">Message ${TriggerObject.attorneyName}</a>

</p>

None of these values are populating. All the appropriate fields are checked for this custom object.

What am I doing wrong here?

1 ACCEPTED SOLUTION

Accepted Solutions
Douglas_Meierdi
Level 2

Re: Help with Velocity: Why won't my TriggerObject values populate?

The issue is that tokens don't work with update triggers on custom objects. I was on a fool's errand the whole time.

View solution in original post

6 REPLIES 6
Nicholas_Manojl
Level 9

Re: Help with Velocity: Why won't my TriggerObject values populate?

In a test or in a campaign from a trigger?

Douglas_Meierdi
Level 2

Re: Help with Velocity: Why won't my TriggerObject values populate?

In a campaign from the trigger - live environment

Nicholas_Manojl
Level 9

Re: Help with Velocity: Why won't my TriggerObject values populate?

I'd expect it to work.

I don't suppose you've tried the outputs outside of the URL? Perhaps it is interpreting '/' as an escape.

Douglas_Meierdi
Level 2

Re: Help with Velocity: Why won't my TriggerObject values populate?

The issue is that tokens don't work with update triggers on custom objects. I was on a fool's errand the whole time.

SanfordWhiteman
Level 10 - Community Moderator

Re: Help with Velocity: Why won't my TriggerObject values populate?

For updates, I sort the CO list by lastUpdated or, even better, a datetime field specifically designed to log CO touches.

Nicholas_Manojl
Level 9

Re: Help with Velocity: Why won't my TriggerObject values populate?

oh right, Custom Object is Updated doesn't work.

Added to Custom Object is fine.

You did write that in your original post.