Mautic Community Forums

Updating lead in Campaign Builder with variable

Hi,



I have added a custom lead field which is a date field “LastEmailed”. In the Campaign Builder, when I send an email I would like to update this field when an email goes out to the current date.



I can add an action which is “Update lead”, but I am not sure how I can specify the change the date to Now() from within this. Is this possible? Or is there a better way to get a record of the last emailed date?



Thanks in advance.

Hi,

I have added a custom lead field which is a date field “LastEmailed”. In the Campaign Builder, when I send an email I would like to update this field when an email goes out to the current date.

I can add an action which is “Update lead”, but I am not sure how I can specify the change the date to Now() from within this. Is this possible? Or is there a better way to get a record of the last emailed date?

Thanks in advance.