# Track any edition email template content (CustomHtml, DynamicContent, etc..)

**URL:** <https://forum.mautic.org/t/track-any-edition-email-template-content-customhtml-dynamiccontent-etc/33525>\
**Category:** Ideas and Feature Requests\
**Created:** [September 18, 2024, 12:50pm UTC](https://forum.mautic.org/t/track-any-edition-email-template-content-customhtml-dynamiccontent-etc/33525 "2024-09-18T12:50:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.piazza.pro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paul.piazza.pro/32/13297_2.png) [@paul.piazza.pro](https://forum.mautic.org/u/paul.piazza.pro)\
**Post date:** [September 18, 2024, 12:50pm UTC](https://forum.mautic.org/t/track-any-edition-email-template-content-customhtml-dynamiccontent-etc/33525/1 "2024-09-18T12:50:23Z")

</div>

My problem is: I want to detect any changes of Email entity fields “subject”, “customHtml”,’ “dynamicContent”, “headers”. My use case is the following: the user creates a new template email with the builder interface. I need to know if the user has edited one of these content fields. Then I want to create some automatic translate email routings.

I see that there is `isChanged` method in `EmailBundle\Entity\Email`. It’s used by other attributes but not `customHtml`. Is there a reason ?

If I add the method there

```php
// EmailBundle/Entity/Email.php
public function setCustomHtml($customHtml)
{
    // add isChanged
    $this->isChanged('customHtml', $customHtml);
    $this->customHtml = $customHtml;
    return $this;
}

```

I can catch the Event `EmailEvents::EMAIL_POST_SAVE` and  
use the `$event->getChanges()` method.

Is there a big impact ? Is there a reason the `isChanged` method has not been added in customHtml ?
