/AWS1/IF_CNT=>CREATECONTACTFLOWVERSION()¶
About CreateContactFlowVersion¶
Publishes a new version of the flow provided. Versions are immutable and monotonically
increasing. If the FlowContentSha256 provided is different from the
FlowContentSha256 of the $LATEST published flow content, then an error
is returned. This API only supports creating versions for flows of type
Campaign.
Method Signature¶
METHODS /AWS1/IF_CNT~CREATECONTACTFLOWVERSION
IMPORTING
!IV_INSTANCEID TYPE /AWS1/CNTINSTANCEID OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/CNTCONTACTFLOWDESC OPTIONAL
!IV_CONTACTFLOWID TYPE /AWS1/CNTARN OPTIONAL
!IV_FLOWCONTENTSHA256 TYPE /AWS1/CNTFLOWCONTENTSHA256 OPTIONAL
!IV_CONTACTFLOWVERSION TYPE /AWS1/CNTRESOURCEVERSION OPTIONAL
!IV_LASTMODIFIEDTIME TYPE /AWS1/CNTTIMESTAMP OPTIONAL
!IV_LASTMODIFIEDREGION TYPE /AWS1/CNTREGIONNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cntcrecontactflowvr01
RAISING
/AWS1/CX_CNTACCESSDENIEDEX
/AWS1/CX_CNTINTERNALSERVICEEX
/AWS1/CX_CNTINVALIDPARAMETEREX
/AWS1/CX_CNTINVALIDREQUESTEX
/AWS1/CX_CNTLIMITEXCEEDEDEX
/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.
iv_contactflowid TYPE /AWS1/CNTARN /AWS1/CNTARN¶
The identifier of the flow.
Optional arguments:¶
iv_description TYPE /AWS1/CNTCONTACTFLOWDESC /AWS1/CNTCONTACTFLOWDESC¶
The description of the flow version.
iv_flowcontentsha256 TYPE /AWS1/CNTFLOWCONTENTSHA256 /AWS1/CNTFLOWCONTENTSHA256¶
Indicates the checksum value of the flow content.
iv_contactflowversion TYPE /AWS1/CNTRESOURCEVERSION /AWS1/CNTRESOURCEVERSION¶
The identifier of the flow version.
iv_lastmodifiedtime TYPE /AWS1/CNTTIMESTAMP /AWS1/CNTTIMESTAMP¶
The Amazon Web Services Region where this resource was last modified.
iv_lastmodifiedregion TYPE /AWS1/CNTREGIONNAME /AWS1/CNTREGIONNAME¶
The Amazon Web Services Region where this resource was last modified.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cntcrecontactflowvr01 /AWS1/CL_CNTCRECONTACTFLOWVR01¶
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->createcontactflowversion(
iv_contactflowid = |string|
iv_contactflowversion = 123
iv_description = |string|
iv_flowcontentsha256 = |string|
iv_instanceid = |string|
iv_lastmodifiedregion = |string|
iv_lastmodifiedtime = '20150101000000.0000000'
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_contactflowarn( ).
lv_resourceversion = lo_result->get_version( ).
ENDIF.