Increment a field on the code

I’ve been asking to go into the code and increment fields (Phone Touches and Email Touches) every time a sales add a Log Phone or the CRM receive an email.
I know PHP but I never worked on the CRM and have no idea where to look at to change the code. I have access to our code via the server to see all the files.

Thank you for your help!

There is no straight forward way to do this in SuiteCRM as far as I know. You could look into implementing it through the use of a logic hook or you could simply make the field auto-increment in the database. Nether one is optimal. There is also an old Sugar plugin that still works called “DTG AUTO INCREMENT FIELD FOR SUGARCRM” if you can find this it may save you some hassle.

Look here:

Thanks Andy, I’ll look into that !