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?
Solved! Go to Solution.
The issue is that tokens don't work with update triggers on custom objects. I was on a fool's errand the whole time.
In a test or in a campaign from a trigger?
In a campaign from the trigger - live environment
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.
For updates, I sort the CO list by lastUpdated or, even better, a datetime field specifically designed to log CO touches.
oh right, Custom Object is Updated doesn't work.
Added to Custom Object is fine.
You did write that in your original post.