Good day Everyone
I am working on a custom module where I need to add data to the Calls log. Below is my code.
$bean = BeanFactory::newBean(‘Calls’);
$bean->name = ‘This is a test’;
$bean->parent_type = $parent_type;//Accounts, Leads, Contacts
$bean->status=“Planned”;//Planned, Held, Not Held
The above code is working fine. The record gets added. What I need to know is how to assign the current logged in user to the call.
Any help would be kindly appreciated. Thank you very much in advance.