How to set fallback value for a Custom Token?

TouzLeft
Participant

Hi,

 

I have set up a custom token in an email content (via automated workflow) using the format {{ custom.key }}, but I haven't seen any resource indicating how to add a fallback value. Anyone having a solution in mind?

 

Thanks,

Lefteris 

1 Accepted solution
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Hi @TouzLeft,

 

For regular tokens it is {{ personalization_token('object.propertyname', 'Fallback value') }} – for custom tokens, I would assume it's {{ personalization_token('custom.key', 'Fallback value') }}

 

I haven't tested this but would assume it works. Give it a try and let me know how it goes!

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

2 Replies 2
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Hi @TouzLeft,

 

For regular tokens it is {{ personalization_token('object.propertyname', 'Fallback value') }} – for custom tokens, I would assume it's {{ personalization_token('custom.key', 'Fallback value') }}

 

I haven't tested this but would assume it works. Give it a try and let me know how it goes!

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

TouzLeft
Participant

Thanks @karstenkoehler , tested and worked!

0 Upvotes