Script To Make Lead Name Blank Is Not Working After R12 Upgrade

(Doc ID 2313190.1)

Last updated on OCTOBER 02, 2017

Applies to:

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

Goal

On : 11.12.1.0.0 version, Leads, Sales Campaigns

Script to make Lead Name Blank is not working after R12 upgrade


The customer requirement is to make Lead Name blank whenever we select the Contact while creating the Lead and whenever we create the Lead through the Contact screen.
It was working before but after upgrade to R12 it is not working. When they checked that in Prod environment which is still in R11 it works.


Script:
String varFirst = nvl(PrimaryContactPersonFirstName.toString(),"")
String varLast = nvl(PrimaryContactPersonLastName.toString(),"")

if(Name != null && varFirst != "" && varLast != "" ){
if( Name.contains(varFirst) && Name.contains(varLast) && Name.contains(","))
setAttribute('Name',"")
else
return false
}
 

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