1 Reply Latest reply on Aug 10, 2018 5:51 AM by Amit_Kumar

    How to Delete GDPR Records Automatically.

    nikitap46765450

      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.