I want to replicate the behaviour of Calls Related To been set as Contacts parent Account on a different module.

Hi Team,

There is a feature "When creating a call from the subpanels, the contact will automatically be added as an attendee and the contact's account will automatically be set in the event's Related To field."

I need to replicate the same behaviour when the Contact is linked to any other custom module, that custom module should be set as the related to on Calls create view.