AnsweredAssumed Answered

Load a record related to related record in Logic Hooks

Question asked by lsackett on Mar 26, 2015
Latest reply on Apr 2, 2015 by lsackett
Confusing title aside, I'm looking to load an existing related Quote in a logic hook, and then load the Account related to that Quote.

Loading the first Quote relationship works just fine with the following code:
$quoteID = implode($bean->quotes->get());
$quote = new Quote();

Then you can use $quote-> to access fields in the related Quote, etc.
My question then is, can you use that $quote->load_relationship('accounts') again to get the Account related to that Quote?

Or is there another method for accessing that related to related record?   Seems like I've tried this example in the past with no luck, but there   may have been something else wrong that time.