Results 1 to 1 of 1

Thread: How to get the related record id after using load_relationship and add() ???

  1. #1
    zuckerrob is offline Junior Member
    Join Date
    Nov 2009
    Posts
    3

    Red face How to get the related record id after using load_relationship and add() ???

    Hi There!

    Sugarcrm CE V 5.2.0j

    Sorry for the maybe dumb question but after having used:
    PHP Code:
    $newBean->load_relationship('mag_oggetti_mag_movimenti');
    $setRecordValues['mag_oggettde89vimenti_idb'] = $idRecCre;
    $newBean->mag_oggetti_mag_movimenti->add($_GET['id_ogg'],$setRecordValues); 
    How do i get the record id of the newly added related record ???
    Thanks You Very Much!
    Rob
    Last edited by zuckerrob; 2010-01-21 at 02:20 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. load_relationship with a custom module
    By EDUCASTREAM in forum Developer Help
    Replies: 2
    Last Post: 2010-08-26, 12:44 AM
  2. What's the best way to add() a related record
    By JVWay in forum Developer Help
    Replies: 1
    Last Post: 2009-12-08, 09:26 PM
  3. Related field non aggiunge record in subpanels
    By StefanoPVR in forum Italiano
    Replies: 5
    Last Post: 2009-07-13, 01:38 PM
  4. how to create a record related to target module ?
    By cryptex in forum Developer Help
    Replies: 2
    Last Post: 2008-11-27, 02:42 PM
  5. Info from related record
    By Iggby in forum Developer Help
    Replies: 14
    Last Post: 2008-04-22, 05:12 PM

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
  •