Triggers On Lead object (Doc ID 2204925.1)

Last updated on NOVEMBER 17, 2016

Applies to:

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

Symptoms

On : 11.1.11.1.0 version, Leads, Sales Campaigns

Trigger on Lead Contact

Trying to create a trigger before modify that change the contact type of lead from Contact to Customer.

Here is the script:
def a=lContactPerson?.SalesProfileType
setAttribute(a,"Customer")

The trigger is saved successfully,but it doesn't work properly.

ERROR
-----------------------

 ""The script gives errors on Leads server scripts which are Error(1,16) : The variable [ContactPerson] is undeclared.
Error(3,1) : Illegal argument to get/setAttribute variable: SalesProfileType


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Navigator>Leads>
2. Open Leads objects

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot fire up the trigger as per their business desires.

Cause

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