/AWS1/IF_CNT=>UPDATEUSERNOTIFICATIONSTATUS()¶
About UpdateUserNotificationStatus¶
Updates the status of a notification for a specific user, such as marking it as read or hidden. Users can only update notification status for notifications that have been sent to them. READ status deprioritizes the notification and greys it out, while HIDDEN status removes it from the notification widget.
Method Signature¶
METHODS /AWS1/IF_CNT~UPDATEUSERNOTIFICATIONSTATUS
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
!IV_NOTIFICATIONID TYPE /AWS1/CNTNOTIFICATIONID OPTIONAL
!IV_USERID TYPE /AWS1/CNTUSERID OPTIONAL
!IV_STATUS TYPE /AWS1/CNTNOTIFICATIONSTATUS OPTIONAL
!IV_LASTMODIFIEDTIME TYPE /AWS1/CNTTIMESTAMP OPTIONAL
!IV_LASTMODIFIEDREGION TYPE /AWS1/CNTREGIONNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntupuserntfstatrsp
RAISING
/AWS1/CX_CNTACCESSDENIEDEX
/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 Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
iv_notificationid TYPE /AWS1/CNTNOTIFICATIONID /AWS1/CNTNOTIFICATIONID¶
The unique identifier for the notification.
iv_userid TYPE /AWS1/CNTUSERID /AWS1/CNTUSERID¶
The identifier of the user whose notification status is being updated.
iv_status TYPE /AWS1/CNTNOTIFICATIONSTATUS /AWS1/CNTNOTIFICATIONSTATUS¶
The new status for the notification. Valid values are READ, UNREAD, and HIDDEN.
Optional arguments:¶
iv_lastmodifiedtime TYPE /AWS1/CNTTIMESTAMP /AWS1/CNTTIMESTAMP¶
The timestamp when the notification status was last modified. Used for cross-region replication and optimistic locking.
iv_lastmodifiedregion TYPE /AWS1/CNTREGIONNAME /AWS1/CNTREGIONNAME¶
The AWS Region where the notification status was last modified. Used for cross-region replication.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntupuserntfstatrsp /AWS1/CL_CNTUPUSERNTFSTATRSP¶
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->updateusernotificationstatus(
iv_instanceid = |string|
iv_lastmodifiedregion = |string|
iv_lastmodifiedtime = '20150101000000.0000000'
iv_notificationid = |string|
iv_status = |string|
iv_userid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.