The SugarCRM Community is now "read-only" to prepare for the SugarClub launch on August 3. Please visit
Announcing SugarClub - Are you in? for more information.
How to get the last insert id from $GLOBALS['db']->query after running an insert sql statement?
If there a build up function for it?
You can create an New random ID using create_guid() before first insert and than use this ID in second insert as parent_id
More Info Here:
HOWTO: Using the bean instead of SQL all the time. « Sugar Developer Blog – SugarCRM
Thank you Emil!!
Retrieving data ...