Skip to content

/AWS1/IF_CNT=>DELETECONTACTDATA()

About DeleteContactData

Deletes the specified fields containing personally identifiable information (PII) from a contact in the specified Connect Customer instance. This operation redacts PII (such as customer endpoints, additional email recipients, and the email subject) from the contact and its associated contact trace record (CTR). The contact must be in a terminated state.

This operation performs a hard deletion of the specified PII and cannot be undone. There is no retention period; after the data is deleted, it cannot be recovered. Only fields that Connect Customer identifies and stores as PII are removed. Any PII that you place in fields outside the scope of this operation remains your responsibility to remove.

Method Signature

METHODS /AWS1/IF_CNT~DELETECONTACTDATA
  IMPORTING
    !IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
    !IV_CONTACTID TYPE /AWS1/CNTCONTACTID OPTIONAL
    !IT_CONTACTFIELDS TYPE /AWS1/CL_CNTCONTACTFIELDS_W=>TT_CONTACTFIELDS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntdeletecontdatarsp
  RAISING
    /AWS1/CX_CNTCONTACTNOTTRMNTDEX
    /AWS1/CX_CNTINTERNALSERVICEEX
    /AWS1/CX_CNTINVALIDPARAMETEREX
    /AWS1/CX_CNTINVALIDREQUESTEX
    /AWS1/CX_CNTRESOURCENOTFOUNDEX
    /AWS1/CX_CNTTHROTTLINGEX
    /AWS1/CX_CNTCLIENTEXC
    /AWS1/CX_CNTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_instanceid TYPE /AWS1/CNTINSTANCEID /AWS1/CNTINSTANCEID

The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

iv_contactid TYPE /AWS1/CNTCONTACTID /AWS1/CNTCONTACTID

The identifier of the contact. PII can be deleted only from a contact that has been disconnected (is in a terminated state).

it_contactfields TYPE /AWS1/CL_CNTCONTACTFIELDS_W=>TT_CONTACTFIELDS TT_CONTACTFIELDS

The categories of PII to redact from the contact. Valid values are CUSTOMER_ENDPOINT, ADDITIONAL_EMAIL_RECIPIENTS, and EMAIL_SUBJECT. ADDITIONAL_EMAIL_RECIPIENTS and EMAIL_SUBJECT are supported only for contacts in the email channel.

RETURNING

oo_output TYPE REF TO /aws1/cl_cntdeletecontdatarsp /AWS1/CL_CNTDELETECONTDATARSP

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->deletecontactdata(
  it_contactfields = VALUE /aws1/cl_cntcontactfields_w=>tt_contactfields(
    ( new /aws1/cl_cntcontactfields_w( |string| ) )
  )
  iv_contactid = |string|
  iv_instanceid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.