Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
661 Ansichten

I want to check for new contacts to send an automatic e-mail. So on a daily basis, I would do an automatic process comparing the create date of a new contact. If the create date is higher than yesterday, I would send a mail.


How do I compare the Create date to the date of yesterday (today, minus one day)

Avatar
Verwerfen
Beste Antwort

Hi,

You need to create a scheduled action and mail template for this.The model of both are shown in the images below:

You can create the template from settings -> technical -> email templates and scheduled action from settings -> technical -> scheduled action.
The id passed in the line:    mail_template = env'mail. template']. sudo. browse(80)Is the id of the email template.


Hope it helps

Avatar
Verwerfen
Autor Beste Antwort

Thank you, I'll try this. I didn't know it would require programming ;-)

Avatar
Verwerfen