I’m fairly new to SuiteCRM and php (historically working with VB / VB.NET / C#.NET …
When a user creates a new record in my custom module I want to be able to create a new related record, save it and link it via the relationship to the record being created.
I’ve tried using the bean factory, however, things seem to fall apart when I call the save() method. Currently, I’m trying to achieve this using the before_save logic hook. However, I can’t seem to get things to work. The examples I’ve found either want to link existing records, don’t work or link to documentation which has been relocated.
I’d be grateful if someone could push me in the right direction.