Skip to content

/AWS1/CL_PPM=>POSTWHATSAPPMESSAGEMEDIA()

About PostWhatsAppMessageMedia

Upload a media file to the WhatsApp service. Only the specified originationPhoneNumberId has the permissions to send the media file when using SendWhatsAppMessage. You must use either sourceS3File or sourceS3PresignedUrl for the source. If both or neither are specified then an InvalidParameterException is returned.

Method Signature

IMPORTING

Required arguments:

IV_ORIGINATIONPHONENUMBERID TYPE /AWS1/PPMWHATSAPPPHONENUMBERID /AWS1/PPMWHATSAPPPHONENUMBERID

The ID of the phone number to associate with the WhatsApp media file. The phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id.

Optional arguments:

IO_SOURCES3PRESIGNEDURL TYPE REF TO /AWS1/CL_PPMS3PRESIGNEDURL /AWS1/CL_PPMS3PRESIGNEDURL

The source presign url of the media file.

IO_SOURCES3FILE TYPE REF TO /AWS1/CL_PPMS3FILE /AWS1/CL_PPMS3FILE

The source S3 url for the media file.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_PPMPOSTWHATSAPPMSGM01 /AWS1/CL_PPMPOSTWHATSAPPMSGM01