How To Carry Over The Custom Child Records And Nites From Leads To Opty While Conversion

(Doc ID 2390953.1)

Last updated on MAY 05, 2018

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.12.1.0.0 and later
Information in this document applies to any platform.

Goal

Customer has a requirement, when a Lead is converted into Opportunity using OOTB conversion button, Notes & Custom Object Record associated with the Lead should be carried over to the associated opportunity.
They have developed the custom codes
1. When they place the code on Before Update trigger, the conversion errors out as expected, because till then Opty Id wouldn't have generated
2. When they place the code on After Commit trigger, Lead gets converted but notes & custom object records doesn't get carried to the associated opty.
Again, once leads gets converted to opty, for testing purpose if place the code 'Before_Update_After_Opty_is_created' (same as the previous code ) on Before Update trigger, lead associated notes & custom object records gets updated in associated opty.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms