Update Parent Object Field When Child Object is Updated - Groovy

(Doc ID 2220606.1)

Last updated on JANUARY 05, 2017

Applies to:

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

Goal

I am trying to update a field of account (Organization Profile) according to changes done in Custom Child Object. The trigger is configured in child object, but no action is returning when the user is creating/updating the row.

The script i am using is:

 def OrgProfile_obj = newView('OrganizationProfile')
 OrgProfile_obj.reset()
 def OrgProf_row = OrgProfile_obj.next()
 setAttribute(OrgProf_row?.str_CNPJ_c,"OK")

How can I update this field of account when the user do changes in its child object?
 

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