SuiteCRM dedicated support by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Unable to look up account-document relationship

Unable to look up account-document relationship 4 days 18 hours ago #70384

  • choang
  • choang's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
I am having trouble to lookup document id that links with the account.
I am trying to get the document id of the document before_relationship_delete.
Below is logic hook code I am working on
class custom_Accounts_Class {

function remove_doc_site_relation (& $bean, $event) {
$id = $bean->id ;

if ($bean->load_relationship('documents_accounts')) {
$GLOBALS->fatal( "Found relation account/document");
$GLOBALS->fatal( "NOT Found relation account/document");
The administrator has disabled public write access.
Time to create page: 0.090 seconds
Powered by Kunena Forum