# add new custom field into lead table

**URL:** <https://forum.mautic.org/t/add-new-custom-field-into-lead-table/9302>\
**Category:** Product Support\
**Created:** [August 25, 2017, 3:29am UTC](https://forum.mautic.org/t/add-new-custom-field-into-lead-table/9302 "2017-08-25T03:29:58Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![robdex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robdex/32/1352_2.png) [@robdex](https://forum.mautic.org/u/robdex)\
**Post date:** [December 18, 2019, 8:44am UTC](https://forum.mautic.org/t/add-new-custom-field-into-lead-table/9302/5 "2019-12-18T08:44:30Z")

</div>

Thanks @alban.  
Finally I used API method like that you link here but I was searching for a method that create a new custom field for contact/company without calling the API from inside Mautic.  
I tried with `ORM\ClassMetadata $builder` and something like `$builder->createField('my_custom_field', 'text')->nullable()->build();` inside an helper but it doesn’t work.

Thanks anyway.

---

_[View the full topic](https://forum.mautic.org/t/add-new-custom-field-into-lead-table/9302)._
