My Oracle Support Banner

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 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
2. Partner

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 = ''
while (partyUsages.hasNext())
 def partyUsg =;
 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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.