/AWS1/IF_CNT=>UPDATETASKTEMPLATE()¶
About UpdateTaskTemplate¶
Updates details about a specific task template in the specified Amazon Connect instance. This operation does not support partial updates. Instead it does a full update of template content.
Method Signature¶
METHODS /AWS1/IF_CNT~UPDATETASKTEMPLATE
IMPORTING
!IV_TASKTEMPLATEID TYPE /AWS1/CNTTASKTEMPLATEID OPTIONAL
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
!IV_NAME TYPE /AWS1/CNTTASKTEMPLATENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CNTTASKTEMPLATEDESC OPTIONAL
!IV_CONTACTFLOWID TYPE /AWS1/CNTCONTACTFLOWID OPTIONAL
!IV_SELFASSIGNFLOWID TYPE /AWS1/CNTCONTACTFLOWID OPTIONAL
!IO_CONSTRAINTS TYPE REF TO /AWS1/CL_CNTTASKTMPLCNSTRNTS OPTIONAL
!IO_DEFAULTS TYPE REF TO /AWS1/CL_CNTTASKTMPLDEFAULTS OPTIONAL
!IV_STATUS TYPE /AWS1/CNTTASKTEMPLATESTATUS OPTIONAL
!IT_FIELDS TYPE /AWS1/CL_CNTTASKTEMPLATEFIELD=>TT_TASKTEMPLATEFIELDS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntupdatetasktmplrsp
RAISING
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTPRPVALIDATIONEX
/AWS1/CX_CNTRESOURCENOTFOUNDEX
/AWS1/CX_CNTSERVICEQUOTAEXCDEX
/AWS1/CX_CNTTHROTTLINGEX
/AWS1/CX_CNTCLIENTEXC
/AWS1/CX_CNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_tasktemplateid TYPE /AWS1/CNTTASKTEMPLATEID /AWS1/CNTTASKTEMPLATEID¶
A unique identifier for the task template.
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.
Optional arguments:¶
iv_name TYPE /AWS1/CNTTASKTEMPLATENAME /AWS1/CNTTASKTEMPLATENAME¶
The name of the task template.
iv_description TYPE /AWS1/CNTTASKTEMPLATEDESC /AWS1/CNTTASKTEMPLATEDESC¶
The description of the task template.
iv_contactflowid TYPE /AWS1/CNTCONTACTFLOWID /AWS1/CNTCONTACTFLOWID¶
The identifier of the flow that runs by default when a task is created by referencing this template.
iv_selfassignflowid TYPE /AWS1/CNTCONTACTFLOWID /AWS1/CNTCONTACTFLOWID¶
The ContactFlowId for the flow that will be run if this template is used to create a self-assigned task.
io_constraints TYPE REF TO /AWS1/CL_CNTTASKTMPLCNSTRNTS /AWS1/CL_CNTTASKTMPLCNSTRNTS¶
Constraints that are applicable to the fields listed.
io_defaults TYPE REF TO /AWS1/CL_CNTTASKTMPLDEFAULTS /AWS1/CL_CNTTASKTMPLDEFAULTS¶
The default values for fields when a task is created by referencing this template.
iv_status TYPE /AWS1/CNTTASKTEMPLATESTATUS /AWS1/CNTTASKTEMPLATESTATUS¶
Marks a template as
ACTIVEorINACTIVEfor a task to refer to it. Tasks can only be created fromACTIVEtemplates. If a template is marked asINACTIVE, then a task that refers to this template cannot be created.
it_fields TYPE /AWS1/CL_CNTTASKTEMPLATEFIELD=>TT_TASKTEMPLATEFIELDS TT_TASKTEMPLATEFIELDS¶
Fields that are part of the template.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntupdatetasktmplrsp /AWS1/CL_CNTUPDATETASKTMPLRSP¶
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->updatetasktemplate(
io_constraints = new /aws1/cl_cnttasktmplcnstrnts(
it_invisiblefields = VALUE /aws1/cl_cntinvisiblefieldinfo=>tt_invisibletasktemplatefields(
( new /aws1/cl_cntinvisiblefieldinfo( new /aws1/cl_cnttasktmplfieldid( |string| ) ) )
)
it_readonlyfields = VALUE /aws1/cl_cntreadonlyfieldinfo=>tt_readonlytasktemplatefields(
( new /aws1/cl_cntreadonlyfieldinfo( new /aws1/cl_cnttasktmplfieldid( |string| ) ) )
)
it_requiredfields = VALUE /aws1/cl_cntrequiredfieldinfo=>tt_requiredtasktemplatefields(
( new /aws1/cl_cntrequiredfieldinfo( new /aws1/cl_cnttasktmplfieldid( |string| ) ) )
)
)
io_defaults = new /aws1/cl_cnttasktmpldefaults(
it_defaultfieldvalues = VALUE /aws1/cl_cnttsktmpldeffieldval=>tt_tasktmpldeffieldvaluelist(
(
new /aws1/cl_cnttsktmpldeffieldval(
io_id = new /aws1/cl_cnttasktmplfieldid( |string| )
iv_defaultvalue = |string|
)
)
)
)
it_fields = VALUE /aws1/cl_cnttasktemplatefield=>tt_tasktemplatefields(
(
new /aws1/cl_cnttasktemplatefield(
io_id = new /aws1/cl_cnttasktmplfieldid( |string| )
it_singleselectoptions = VALUE /aws1/cl_cntsingleselectopts_w=>tt_singleselectoptions(
( new /aws1/cl_cntsingleselectopts_w( |string| ) )
)
iv_description = |string|
iv_type = |string|
)
)
)
iv_contactflowid = |string|
iv_description = |string|
iv_instanceid = |string|
iv_name = |string|
iv_selfassignflowid = |string|
iv_status = |string|
iv_tasktemplateid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_instanceid = lo_result->get_instanceid( ).
lv_tasktemplateid = lo_result->get_id( ).
lv_tasktemplatearn = lo_result->get_arn( ).
lv_tasktemplatename = lo_result->get_name( ).
lv_tasktemplatedescription = lo_result->get_description( ).
lv_contactflowid = lo_result->get_contactflowid( ).
lv_contactflowid = lo_result->get_selfassignflowid( ).
lo_tasktemplateconstraints = lo_result->get_constraints( ).
IF lo_tasktemplateconstraints IS NOT INITIAL.
LOOP AT lo_tasktemplateconstraints->get_requiredfields( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lo_tasktemplatefieldidenti = lo_row_1->get_id( ).
IF lo_tasktemplatefieldidenti IS NOT INITIAL.
lv_tasktemplatefieldname = lo_tasktemplatefieldidenti->get_name( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_tasktemplateconstraints->get_readonlyfields( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lo_tasktemplatefieldidenti = lo_row_3->get_id( ).
IF lo_tasktemplatefieldidenti IS NOT INITIAL.
lv_tasktemplatefieldname = lo_tasktemplatefieldidenti->get_name( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_tasktemplateconstraints->get_invisiblefields( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lo_tasktemplatefieldidenti = lo_row_5->get_id( ).
IF lo_tasktemplatefieldidenti IS NOT INITIAL.
lv_tasktemplatefieldname = lo_tasktemplatefieldidenti->get_name( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
lo_tasktemplatedefaults = lo_result->get_defaults( ).
IF lo_tasktemplatedefaults IS NOT INITIAL.
LOOP AT lo_tasktemplatedefaults->get_defaultfieldvalues( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lo_tasktemplatefieldidenti = lo_row_7->get_id( ).
IF lo_tasktemplatefieldidenti IS NOT INITIAL.
lv_tasktemplatefieldname = lo_tasktemplatefieldidenti->get_name( ).
ENDIF.
lv_tasktemplatefieldvalue = lo_row_7->get_defaultvalue( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_result->get_fields( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lo_tasktemplatefieldidenti = lo_row_9->get_id( ).
IF lo_tasktemplatefieldidenti IS NOT INITIAL.
lv_tasktemplatefieldname = lo_tasktemplatefieldidenti->get_name( ).
ENDIF.
lv_tasktemplatefielddescri = lo_row_9->get_description( ).
lv_tasktemplatefieldtype = lo_row_9->get_type( ).
LOOP AT lo_row_9->get_singleselectoptions( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_tasktemplatesingleselec = lo_row_11->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_tasktemplatestatus = lo_result->get_status( ).
lv_timestamp = lo_result->get_lastmodifiedtime( ).
lv_timestamp = lo_result->get_createdtime( ).
ENDIF.