/AWS1/IF_PPM=>DELETEWHATSAPPMESSAGEMEDIA()¶
About DeleteWhatsAppMessageMedia¶
Delete a media object from the WhatsApp service. If the object is still in an Amazon S3 bucket you should delete it from there too.
Method Signature¶
METHODS /AWS1/IF_PPM~DELETEWHATSAPPMESSAGEMEDIA
IMPORTING
!IV_MEDIAID TYPE /AWS1/PPMWHATSAPPMEDIAID OPTIONAL
!IV_ORIGINATIONPHONENUMBERID TYPE /AWS1/PPMWHATSAPPPHONENUMBERID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ppmdelwhatsappmsgme01
RAISING
/AWS1/CX_PPMACCESSDENIEDEX
/AWS1/CX_PPMVALIDATIONEX
/AWS1/CX_PPMACCDENIEDBYMETAEX
/AWS1/CX_PPMDEPENDENCYEX
/AWS1/CX_PPMINTERNALSERVICEEX
/AWS1/CX_PPMINVALIDPARAMSEX
/AWS1/CX_PPMRESOURCENOTFOUNDEX
/AWS1/CX_PPMTHROTTLEDREQUESTEX
/AWS1/CX_PPMCLIENTEXC
/AWS1/CX_PPMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_mediaid TYPE /AWS1/PPMWHATSAPPMEDIAID /AWS1/PPMWHATSAPPMEDIAID¶
The unique identifier of the media file to delete. Use the
mediaIdreturned from PostWhatsAppMessageMedia.
iv_originationphonenumberid TYPE /AWS1/PPMWHATSAPPPHONENUMBERID /AWS1/PPMWHATSAPPPHONENUMBERID¶
The unique identifier of the originating phone number associated with the media. Phone number identifiers are formatted as
phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ppmdelwhatsappmsgme01 /AWS1/CL_PPMDELWHATSAPPMSGME01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->deletewhatsappmessagemedia(
iv_mediaid = |string|
iv_originationphonenumberid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_boolean = lo_result->get_success( ).
ENDIF.