I am trying to fetch related field id(related field is Account) through the logic from the call module using these code
$userbean = new Account();
$userphone = $userbean->phone_office;
//$usermobile = $userbean->phone_work;
But it is not working please tell me how to do this in sugarCE 6.5.22.