'oppp_opportunity_products_opportunities' is the link from Opportunities to oppp_OpportunityProducts.

Want to copy more related records? Simply add more link names to the array.

Now when the Opp is copied, the products are copied with it.

So simple!

Francesca

(Tested in SugarCRM 7.8 Professional)

NB: beware of cardinality! If your relationship is 1:M (e.g. each product can only be related to one opportunity only) the product will MOVE to the new Opportunity record and will disappear from the original!