How to get all cases linke to Opportunity?

I try to get all cases, linke to an opportunity (for example).

I need the information in a LogicHook because i want to link the same cases to another type (in this specific case to a document).

I´ve tried a lot, but always unable to fetch the linked Cases.

In this example - $case1 and $case2 is "0" and $caseBeans never reached.

What´s the best or correct way to determine all attached/linke cases to a bean?

Appreciate any help. Thanks a lot.

Parents
  • get_linked_beans is how we used to do it years ago in version 6, but that method has been obsolete for quite some time.

    The way to get related beans is what  described, just make sure that your link name ($relationship, in Jeroen's code) is correct. Although I'm not familiar with the use of AcuityLog and I suspect it's an add-on to his particular setup.

    What version of Sugar are you working with?

    FrancescaS

Reply
  • get_linked_beans is how we used to do it years ago in version 6, but that method has been obsolete for quite some time.

    The way to get related beans is what  described, just make sure that your link name ($relationship, in Jeroen's code) is correct. Although I'm not familiar with the use of AcuityLog and I suspect it's an add-on to his particular setup.

    What version of Sugar are you working with?

    FrancescaS

Children