# Updating lead in Campaign Builder with variable

**URL:** <https://forum.mautic.org/t/updating-lead-in-campaign-builder-with-variable/3096>\
**Category:** General Discussion\
**Created:** [December 30, 2015, 10:14am UTC](https://forum.mautic.org/t/updating-lead-in-campaign-builder-with-variable/3096 "2015-12-30T10:14:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidclark52](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@davidclark52](https://forum.mautic.org/u/davidclark52)\
**Post date:** [December 30, 2015, 10:14am UTC](https://forum.mautic.org/t/updating-lead-in-campaign-builder-with-variable/3096/1 "2015-12-30T10:14:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![davidclark52](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@davidclark52](https://forum.mautic.org/u/davidclark52)\
**Post date:** [December 30, 2015, 10:14am UTC](https://forum.mautic.org/t/updating-lead-in-campaign-builder-with-variable/3096/2 "2015-12-30T10:14:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:54pm UTC](https://forum.mautic.org/t/updating-lead-in-campaign-builder-with-variable/3096/3 "2020-02-02T22:54:37Z")

</div>


