How To Create and Update a record in a child record from another child record with the latest record created via groovy (Doc ID 2118192.1)

Last updated on AUGUST 29, 2017

Applies to:

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

Goal

In this document you will learn how to use the last record created in a child object to update a single line in a second child object.

The set up is like so:

1-Custom Top Level Object
2 -This Custom Object has 2 Child Objects(Child_1 and Child_2)

==REQUIREMENT==
Get the information of the last record created on Child_1 and put it on a record of Child_2

This technique will cover the following scenarios:

1 – The Child_2 has no record in it, so when we first create a record in Child_1 we also create our record in Child_2

2 – Once record is created we just update that record over and over again, when new lines are added in Child_1


 

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