/AWS1/IF_CNT=>UPDATEEVALUATIONFORM()¶
About UpdateEvaluationForm¶
Updates details about a specific evaluation form version in the specified Amazon Connect instance. Question and section identifiers cannot be duplicated within the same evaluation form.
This operation does not support partial updates. Instead it does a full update of evaluation form content.
Method Signature¶
METHODS /AWS1/IF_CNT~UPDATEEVALUATIONFORM
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
!IV_EVALUATIONFORMID TYPE /AWS1/CNTRESOURCEID OPTIONAL
!IV_EVALUATIONFORMVERSION TYPE /AWS1/CNTVERSIONNUMBER OPTIONAL
!IV_CREATENEWVERSION TYPE /AWS1/CNTBOXEDBOOLEAN OPTIONAL
!IV_TITLE TYPE /AWS1/CNTEVALUATIONFORMTITLE OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CNTEVALUATIONFORMDESC OPTIONAL
!IT_ITEMS TYPE /AWS1/CL_CNTEVALUATIONFORMITEM=>TT_EVALUATIONFORMITEMSLIST OPTIONAL
!IO_SCORINGSTRATEGY TYPE REF TO /AWS1/CL_CNTEVALFORMSCORINGS00 OPTIONAL
!IO_AUTOEVALUATIONCONF TYPE REF TO /AWS1/CL_CNTEVALFRMAUTOEVALC00 OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/CNTCLIENTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntupdateevalformrsp
RAISING
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTRESOURCECONFLICTEX
/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_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_evaluationformid TYPE /AWS1/CNTRESOURCEID /AWS1/CNTRESOURCEID¶
The unique identifier for the evaluation form.
iv_evaluationformversion TYPE /AWS1/CNTVERSIONNUMBER /AWS1/CNTVERSIONNUMBER¶
A version of the evaluation form to update.
iv_title TYPE /AWS1/CNTEVALUATIONFORMTITLE /AWS1/CNTEVALUATIONFORMTITLE¶
A title of the evaluation form.
it_items TYPE /AWS1/CL_CNTEVALUATIONFORMITEM=>TT_EVALUATIONFORMITEMSLIST TT_EVALUATIONFORMITEMSLIST¶
Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
Optional arguments:¶
iv_createnewversion TYPE /AWS1/CNTBOXEDBOOLEAN /AWS1/CNTBOXEDBOOLEAN¶
A flag indicating whether the operation must create a new version.
iv_description TYPE /AWS1/CNTEVALUATIONFORMDESC /AWS1/CNTEVALUATIONFORMDESC¶
The description of the evaluation form.
io_scoringstrategy TYPE REF TO /AWS1/CL_CNTEVALFORMSCORINGS00 /AWS1/CL_CNTEVALFORMSCORINGS00¶
A scoring strategy of the evaluation form.
io_autoevaluationconf TYPE REF TO /AWS1/CL_CNTEVALFRMAUTOEVALC00 /AWS1/CL_CNTEVALFRMAUTOEVALC00¶
Whether automated evaluations are enabled.
iv_clienttoken TYPE /AWS1/CNTCLIENTTOKEN /AWS1/CNTCLIENTTOKEN¶
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntupdateevalformrsp /AWS1/CL_CNTUPDATEEVALFORMRSP¶
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->updateevaluationform(
io_autoevaluationconf = new /aws1/cl_cntevalfrmautoevalc00( ABAP_TRUE )
io_scoringstrategy = new /aws1/cl_cntevalformscorings00(
iv_mode = |string|
iv_status = |string|
)
it_items = VALUE /aws1/cl_cntevaluationformitem=>tt_evaluationformitemslist(
(
new /aws1/cl_cntevaluationformitem(
io_question = new /aws1/cl_cntevalformquestion(
io_enablement = new /aws1/cl_cntevalfrmitemenbme00(
io_condition = new /aws1/cl_cntevalfrmitemenbme01(
it_operands = VALUE /aws1/cl_cntevalfrmitemenbme02=>tt_evalfrmitemenbmentcondope00(
(
new /aws1/cl_cntevalfrmitemenbme02(
io_condition = new /aws1/cl_cntevalfrmitemenbme01( iv_operator = |string| )
io_expression = new /aws1/cl_cntevalfrmitemenbme03(
io_source = new /aws1/cl_cntevalfrmitemenbme04(
iv_refid = |string|
iv_type = |string|
)
it_values = VALUE /aws1/cl_cntevalfrmitemenbme05=>tt_evalfrmitemenbmentsrcvallst(
(
new /aws1/cl_cntevalfrmitemenbme05(
iv_refid = |string|
iv_type = |string|
)
)
)
iv_comparator = |string|
)
)
)
)
iv_operator = |string|
)
iv_action = |string|
iv_defaultaction = |string|
)
io_questiontypeproperties = new /aws1/cl_cntevalformquestion00(
io_numeric = new /aws1/cl_cntevalformnumericq00(
io_automation = new /aws1/cl_cntevalformnumericq02(
io_answersource = new /aws1/cl_cntevalfrmquestiona00( |string| )
io_propertyvalue = new /aws1/cl_cntnumericquestionp00( |string| )
)
it_options = VALUE /aws1/cl_cntevalformnumericq01=>tt_evalformnumericquestionop00(
(
new /aws1/cl_cntevalformnumericq01(
io_automaticfailconf = new /aws1/cl_cntautomaticfailconf( |string| )
iv_automaticfail = ABAP_TRUE
iv_maxvalue = 123
iv_minvalue = 123
iv_score = 123
)
)
)
iv_maxvalue = 123
iv_minvalue = 123
)
io_singleselect = new /aws1/cl_cntevalformsinglese00(
io_automation = new /aws1/cl_cntevalformsinglese02(
io_answersource = new /aws1/cl_cntevalfrmquestiona00( |string| )
it_options = VALUE /aws1/cl_cntevalformsinglese03=>tt_evalformsingleselquestion01(
(
new /aws1/cl_cntevalformsinglese03(
io_rulecategory = new /aws1/cl_cntsingleselquestio00(
iv_category = |string|
iv_condition = |string|
iv_optionrefid = |string|
)
)
)
)
iv_defaultoptionrefid = |string|
)
it_options = VALUE /aws1/cl_cntevalformsinglese01=>tt_evalformsingleselquestion00(
(
new /aws1/cl_cntevalformsinglese01(
io_automaticfailconf = new /aws1/cl_cntautomaticfailconf( |string| )
iv_automaticfail = ABAP_TRUE
iv_refid = |string|
iv_score = 123
iv_text = |string|
)
)
)
iv_displayas = |string|
)
io_text = new /aws1/cl_cntevalfrmtxtquesti00( new /aws1/cl_cntevalfrmtxtquesti01( new /aws1/cl_cntevalfrmquestiona00( |string| ) ) )
)
iv_instructions = |string|
iv_notapplicableenabled = ABAP_TRUE
iv_questiontype = |string|
iv_refid = |string|
iv_title = |string|
iv_weight = '0.1'
)
io_section = new /aws1/cl_cntevalformsection(
it_items = VALUE /aws1/cl_cntevaluationformitem=>tt_evaluationformitemslist(
)
iv_instructions = |string|
iv_refid = |string|
iv_title = |string|
iv_weight = '0.1'
)
)
)
)
iv_clienttoken = |string|
iv_createnewversion = ABAP_TRUE
iv_description = |string|
iv_evaluationformid = |string|
iv_evaluationformversion = 123
iv_instanceid = |string|
iv_title = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_resourceid = lo_result->get_evaluationformid( ).
lv_arn = lo_result->get_evaluationformarn( ).
lv_versionnumber = lo_result->get_evaluationformversion( ).
ENDIF.