/AWS1/IF_CNT=>CREATEEVALUATIONFORM()¶
About CreateEvaluationForm¶
Creates an evaluation form in the specified Amazon Connect instance. The form can be used to define questions related to agent performance, and create sections to organize such questions. Question and section identifiers cannot be duplicated within the same evaluation form.
Method Signature¶
METHODS /AWS1/IF_CNT~CREATEEVALUATIONFORM
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID 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
!IT_TAGS TYPE /AWS1/CL_CNTTAGMAP_W=>TT_TAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntcreateevalformrsp
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_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_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¶
Configuration information about automated evaluations.
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.
it_tags TYPE /AWS1/CL_CNTTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntcreateevalformrsp /AWS1/CL_CNTCREATEEVALFORMRSP¶
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->createevaluationform(
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'
)
)
)
)
it_tags = VALUE /aws1/cl_cnttagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_cnttagmap_w=>ts_tagmap_maprow(
value = new /aws1/cl_cnttagmap_w( |string| )
key = |string|
)
)
)
iv_clienttoken = |string|
iv_description = |string|
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( ).
ENDIF.