My Oracle Support Banner

HOW TO CREATE HOUSEHOLD RECORD USING GROOVY (Doc ID 2652074.1)

Last updated on DECEMBER 22, 2020

Applies to:

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

Goal

How can I create a Household record using a groovy script in an object function?

We tried using below script that triggers through an action button but does notthing.


try {
def addPartyGroup = newView("Group");
def addRow = addPartyGroup.createRow();
  
addRow.setAttribute("GroupName", sPartyName);
  addRow.setAttribute("CreatedByModule","HZ_WS");
addPartyGroup.insertRow(addRow);
}
catch(Exception e) {
  println("Error:" + e)
}
 

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.