My Oracle Support Banner

Groovy Scripts Trigger On Custom Objects (Doc ID 2161020.1)

Last updated on JANUARY 11, 2018

Applies to:

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

Goal

Trigger "After Database Update" on custom object doesn't trigger if objects created or updated using SOAP interface.

println("Test Object Trigger")
def bookingType = getAttribute('BookingType_c')
def contactPrimaryEmailAddress = nvl(PrimaryContact_Obj_c?.getAttribute('PrimaryEmailAddress'),null)
def guestPrimaryEmailAddress = nvl(Guest_Obj_c?.getAttribute('PrimaryEmailAddress'),null)
def object =
[TravelAgent_c : nvl(getAttribute('TravelAgent_c'),""),
Company_Id_c : nvl(Company_Obj_c?.getAttribute('PartyId_c'),""),
TravelAgent_Id_c : nvl(TravelAgent_Obj_c?.getAttribute('PartyId_c'),""),
...

BlockStatus_c : nvl(getAttribute('BlockStatus_c'),"")]
try{
adf.webServices.ICS_RESPONSYS_GROUP_BOOKING.processOutboundMessage(object)
} catch(Exception e){
//Error will be monitored in ICS
println("Exception calling ICS")
}
 

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!


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