Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
642 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä Paras vastaus

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

Avatar
Hylkää