Unable To Retrieve Parent Id (TargetPartyId) In After Create Trigger (Doc ID 2103127.1)

Last updated on APRIL 03, 2016

Applies to:

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

Goal

Create a After create trigger under opportunity:
def _AccountId = nvl(TargetPartyId, '')
 if(_AccountId != '')
{ setAttribute('Comments',_AccountId)}

If you go on an Account -> Go to Opportunities -> create opportunity -> why the trigger is retrieving null?

 

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