Partner Contact: Unable to default custom field to value 'Partner', using Groovy
(Doc ID 2156235.1)
Last updated on MAY 11, 2018
Applies to:Oracle Fusion Sales Cloud Service - Version 22.214.171.124.0 and later
Information in this document applies to any platform.
In Partners -> Contacts sub-tab -> there is a custom FCL field named Contact Record Type, with two values:
1. End Customer Contact
This field is displayed only on Details layout.
Customer's requirement is that whenever they are creating a partner contact, the value of the FCL field should be defaulted to "Partner".
In order to achieve the requirement, they have created a Before Insert in Database Object Trigger in Contact Object, but so far no joy:
def partyUsages = PartyUsageAssignment;
def PartnerFlag = ''
def partyUsg = partyUsages.next();
if(partyUsg?.PartyUsageName=='Partner' && PartnerFlag!='Y')
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document