I’m working with a before_relationship_delete logic hook and I want to find the ID of the record/relationship that is being deleted, is that possible?

How can I find that ID?


The first parameter passed to your logic hook should contain the bean which you can get the id from. Eg

class YourClass
     function yourHookMethod($bean, $event, $arguments)
          $idYouwant = $bean->id;

Thanks for your reply,

$bean->id is the ID of the primary record, I needed the ID of the related record, which I got from $arguments[‘related_id’]