My Oracle Support Banner

In Lead Object When We Update Any Value And Save It Is Throwing Reason Is Mandate Error (Doc ID 2616786.1)

Last updated on JANUARY 07, 2020

Applies to:

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

Goal

When we are trying to update any value and save it is throwing error.

Error --> Reason is mandate

We have added Before update trigger for standard field Reason reject and comments.

Trigger script --->

if ((RejectReasonCode == null || RejectReasonCode == ''))
{
throw new oracle.jbo.ValidationException('Reason is Mandate')
}
else if (RejectComment == null || RejectComment == '')
{
throw new oracle.jbo.ValidationException('Comment is Mandate')
}
else
return true


 

Solution

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
Goal
Solution
References


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