Email Marketing Tool

IBostan
Participant

Default value for custom property in email

SOLVE

Hi! I have an email with a personalization token {{ custom.organization }} which I send in the request through the Single-send API. Is there a way to specify a default value in case the property has not been sent? 

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

Default value for custom property in email

SOLVE

Hi @IBostan,

 

Just to confirm, you'd like to know the syntax for including a default value in the token? If so, it would be:

 

{{ personalization_token('custom.organization', 'Default value') }}

 

I'd recommend testing this thoroughly, as custom objects sometimes behave differently than the default contact and company object, for example.

 

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

3 Replies 3
Tna34
Member

Default value for custom property in email

SOLVE

 trampolines are fun! They can help reduce stress and provide a much-needed break from the grind of everyday life. So why not give bouncing a try? You just might find that it’s the perfect way to stay healthy, happy, and fit.

0 Upvotes
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Default value for custom property in email

SOLVE

Hi @IBostan,

 

Just to confirm, you'd like to know the syntax for including a default value in the token? If so, it would be:

 

{{ personalization_token('custom.organization', 'Default value') }}

 

I'd recommend testing this thoroughly, as custom objects sometimes behave differently than the default contact and company object, for example.

 

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.

IBostan
Participant

Default value for custom property in email

SOLVE

Thanks! Yes, I was looking exactly for this syntax, much appreciate!

0 Upvotes