How to set fallback value for a Custom Token?

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

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!

Thanks @karstenkoehler , tested and worked!