My Oracle Support Banner

Object Function For Contact-Anonymization Deletes Address 2 Minutes After Triggered (Doc ID 2443569.1)

Last updated on DECEMBER 22, 2020

Applies to:

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

Goal

Customer uses the object-function "LCS_Anonymizationprocess" to delete the PII-data of contacts (name, telephone, email and address). The function is invoked by a before update object-trigger "LCS_StartAnonymization". The trigger works as expected, except for the deletion of the address, which takes several minutes to be completed. When the trigger is called, all the fields are updated immediately except for the address-fields. They expect that the address fields are updated immediately like the other fields, too.

Script:

// name anonymisieren
setAttribute('PersonFirstName', PersonFirstName.substring(0, 1) + ".");
setAttribute('PersonLastName', PersonLastName.substring(0, 1) + ".");

// telefonnummer anonymisieren
def phones = Phone;
while (phones?.hasNext()) {
def ph = phones.next();
ph.remove();
}

// email adressen anonymisieren
def emails = Email;
while(emails?.hasNext()) {
def em = emails.next();
// TODO kisi: email loeschen in eloqua
em.remove();
}

// TODO kisi: email loeschen in eloqua
setAttribute('LCS_FurtherEMail_c', '');

// addresse anonymisieren
def comment = String.format("Anonymisiert am %td.%tm.%tY", now(), now(), now());
setAttribute('Comments', comment);

def vo = newView('Address');
def vc = vo.createViewCriteria();
def vcr = vc.createRow();
def vc1 = vcr.ensureCriteriaItem('PartyId');
vc1.setOperator('=');
vc1.setValue(PartyId);
vc.insertRow(vcr);
vo.appendViewCriteria(vc);
vo.executeQuery();

while(vo.hasNext()) {
def row = vo.next();
row.remove();
}

 

 

 

if(LCS_AnonFlag_c == 'Y'){
LCS_Anonymizationprocess();
}

 


 

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.