Custom fields directly in DB

Hi, is there anything preventing me from creating my custom fields directly in the lead_fields table?


if you create exactly correct insert statements in leads/company & lead configuration table it should work.


I would advice against such action for as long as possible since you have an interface you can use to add fields. Going down the route of manual inserts in the database is error prone approach that would require investigation on structure and inserts on the relevant tables and in my experiance such actions rarely end up producing desired result.

I think you also have API available for adding the fields. If not its probably more reliable to implement api endpoint that uses core components of Mautic to add fields into the tables, than manually insert the records directly into the database.

Regards, M.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.