Bitrix24 Community

Support » Forum » CRM » Set Birthday Task on Contact Creation
Pages: 1
Set Birthday Task on Contact Creation
I am trying to figure out a way to set a task up so when a contact is created, it take a birthday entered and creates a task with a due date of the contacts next birthday (or a few days before) and assigns it to someone. It's the getting the logic to create the due date on the next birthday(or a few days before) that I'm stuck on... help. This is probably so obvious!

PS. Newby to Bitrix.
Hi Giuseppe!

This can be done with the help of Business Processes module (CRM>Settings>Business Processes). You can read about BPs in our Training Coures.

Kind Regards,

Thanks Yana

I'd viewed the video and have read the documentation on the training site. It would appear that I need to use the =dateadd([initial date], [time span]) function. I can easily add days or months or years to the {=Document:BIRTHDATE} field and the task deadline ends up the date I am expecting. It's when I am trying do do something a bit more clever that I am getting in a muddle with and could do with some guidance from yourself or another.

So... in my example {=Document:BIRTHDATE} equals 04/09/1981. My business process should set the date of the contact's next birthday, so in this case if it was run today it would set the due date to 04/09/2015.

To do this I actually need to calculate the amount of years to add in the second argument of =dateadd as opposed to providing it a number. Any ideas on how I do that ccalculation I have something like this in my mind.

=dateadd({=Document:BIRTHDATE}, "+xy") where x is some sort of year calculation based on today's date. :/

Help is appreciated. Thanks
Pages: 1
are already using Bitrix24