/AWS1/IF_CNT=>DELETECONTACTDATA()¶
About DeleteContactData¶
Deletes the specified fields containing personally identifiable information (PII) from a contact in the specified Connect Customer instance. We redact 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 deletion is permanent and cannot be undone. Performing this operation permanently deletes the specified PII. There is no retention period; you cannot recover the data after deletion. We remove only the fields that Connect Customer identifies and stores as PII. 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. You can delete PII 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. Specify one or more of the following values:
CUSTOMER_ENDPOINT– The customer's contact endpoint.
ADDITIONAL_EMAIL_RECIPIENTS– Additional recipients on an email contact (email channel only).
EMAIL_SUBJECT– The subject line of an email contact (email channel only).
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.