Hi,
I would like to send an email to a group of customer. One group should get One email and the other the other
My email contains 2 block
The field I am trying to get is a 1:N relationship from contact.
Kind regards
Camilla
Could we add datetime in a condition ?
<!-- #if (gt this.createdon '2023-01-01') -->
?
thank you
Hi Camilla,
If you have new question, please open a new thread for it, I'll answer you in that new thread. :)
(And please add more descriptions or an example towards the new question.
As per my understanding, it seems that you would like to display different content based on value of two fields?
Or is the new question still related to marketing email?)
Regards,
Clofly
Camilla
Hi Camilla,
I sent test email to two different contacts, and result is as expected.
(Due to relationship between Contact and Memebership is 1:N in my environment, so I instead tested by Conatct and Account(Company Name))
Bulk Email field of Cloflys' company is Allow(false, its default setting.)
Bulk Email field of Viktors' company is Do Not Allow(true)
Your issue might be caused by cache, try to run a simple customer journey again to send email to your two test contacts,
make Roadassistance field of memebership of those two contacts have opposite value, then check whether content of delivered email would become different.
Regards,
Clofly
Hi again,
Now I`ve got the email number 2, sent to my private email adress. This person has Roadassistance= No, But still he got this. (The conatct with my email is a he).
I`ve also got this but I have Roadassistance= Yes?
Thank you so much for your help Clofly. This custom code is not easy for a person that don`t works with code. But hopefully I will get this.. Really hope Microsoft came with something eaiser.
Hi Camilla,
Yes, you will always get the Content B Text if Roadassistance = Yes.
If you change roadassistance of membership to No, then you will get Content A.
Regards,
Clofly
..
The dynamic expression is Yes/No..
But now you lost me again.. This is not easy.. How should I write this?
It is based on value of cgi_roadassistance field.
Could you share your dynamic expression?
{{#if contact.xxx}} expression is equal to true.
e.g: If cgi_roadassistance of related membership is yes, then your expression would be
{{#if contact.contact_cgi_membership_cgi_currentmembershipid.cgi_roadassistance }}
Veihjelp 1
{{else}}
Veihjelp 2
{{/if}}
Regards,
Clofly
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156