Hello SugarCRM community
I would like to add new one-to-many relationship from the lead page to my custom module.
As I understand it, I have to use a logical hook, but I cannot implement it.
Could you help me?
I have a lot of difficulties with this, for example, how can I get the current ID? or is it not needed at all
Here is an example of my use case:
I would like to have on the lead page such fields as contact information with two prefixes home and work.
And so that the field with the home prefix after conversion of the lead is automatically recorded as a record of a one-to-many relationship in my custom module. And fields with a worker prefix will be created in another one-to-many relationship record.
I would like a new record to be created for each prefix.
For example, for each fields, home mobile, work mobile, instagram, email, work email, so that all these fields would be as separate records in the subpanel of my custom module. (one-to-many relationship)
I hope I was able to explain it correctly.
I'm not very good at this, I wanted to ask you for advice, maybe someone came across a similar one and could share an example of my code that I could change
Thanks