Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

How to Delete GDPR Records Automatically.

Avatar

Level 2

Hi,

I am trying to delete GDPR records, by default 2 step process is activated.

Because of which every record gets deleted only after confirming delete.

How to override confirm delete setting of GDPR & automatically delete records.

I have tried below code. Provided in following link :

Campaign Classic - General Data Protection Regulation

Even after using following code records doesn't get delete automatically, It remains in confirm delete pending state.

What can be the issue?

loadLibrary("nms:gdpr.js");

/****************************

This code calls an API to create new Privay request on the DB

It requires 4 parameters below

Feel free to change parameter values

****************************/

// 1. namespace internal name

var namespaceName = "defaultNamespace1";

// 2. reconciliation value for privacy request

var reconciliationValue = "example@adobe.com";

// 3. privacy request type

// GDPR_REQUEST_TYPE_ACCESS = 1;

// GDPR_REQUEST_TYPE_DELETE = 2;

var requestType = GDPR_REQUEST_TYPE_ACCESS;

// 4. confirm deleting data required

// value : true or false

var bConfirmDeletePending = true;

// BEGIN

var requestId = nms.gdprRequest.CreateRequestByName(namespaceName,reconciliationValue, requestType, bConfirmDeletePending);

// User can use a simple queryDef with requestID as a parameter to check request status

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You need to change the option to zero to process this request automatically. as of now, you are using a two-step process.

1546031_pastedImage_0.png

Privacy_Request_ConfirmDeletePending should be set to 0.

and

var bConfirmDeletePending = false;

Regards,

Amit

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

You need to change the option to zero to process this request automatically. as of now, you are using a two-step process.

1546031_pastedImage_0.png

Privacy_Request_ConfirmDeletePending should be set to 0.

and

var bConfirmDeletePending = false;

Regards,

Amit