Scripting Issue In Account Module (Doc ID 2241061.1)

Last updated on MARCH 12, 2017

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.1.11.1.0 to 11.1.11.1.0 [Release 1.0]
Information in this document applies to any platform.

Goal

Scripting issue in Account module


Customer is using the parent account out of the box field to update a custom field called NOV parent Account ID and NOV parent account. I have created a calculated field to populate this value and then set the calculated field value to custom field. the calculated field value is getting populated when i select the parent account and save. but the script written on Before Update in Database trigger is not updating the custom fields.

this is the script uses to populate the calculated field value to custom field:

def PAIdCal = getAttribute('ParentAccountIdCal_c')
def PACal = getAttribute('ParentAccountCal_c')
if(PAIdCal != null)
{
setAttribute('NOV_ParentAccount_c',PAIdCal)
setAttribute('NOV_ParentAccountId_c',PACal)
}



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