Results 1 to 3 of 3

Thread: retrieving related beans in php code

  1. #1
    bogo123 is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    21

    Default retrieving related beans in php code

    Hi all,
    do you have some ideas how can I retrieve related items directly in php code?
    For example I have $account bean and I want load all related opportunities (as shown in subpanel).
    is method like $account->get_relationship_records() ?

    thanks in advance
    Marcin

  2. #2
    swilliams is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    21

    Default Re: retrieving related beans in php code

    Hi,

    Use get_linked_beans().

    For example:

    $account->get_linked_beans('opportunities','Opportunity') ;

    This will return an array of all opportunity beans that are linked to the account.

    regards,

    Steven Williams
    RPS Technology
    http://www.rpstechnology.com

  3. #3
    bogo123 is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    21

    Thumbs up Re: retrieving related beans in php code

    Thanks a lot!
    That method is exactly what I needed.

    Marcin

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP Warnings after install add-in Module
    By kgeving in forum Help
    Replies: 1
    Last Post: 2006-08-08, 05:54 PM
  2. Errors after upgrade
    By mturany in forum Help
    Replies: 0
    Last Post: 2006-04-24, 04:40 AM
  3. ERROR in 4.01
    By rateck in forum Help
    Replies: 3
    Last Post: 2006-02-02, 10:00 PM
  4. Replies: 7
    Last Post: 2005-05-10, 08:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •