/AWS1/IF_CN2=>PUTOUTBOUNDREQUESTBATCH()¶
About PutOutboundRequestBatch¶
Creates outbound requests for the specified campaign Amazon Connect account. This API is idempotent.
Method Signature¶
METHODS /AWS1/IF_CN2~PUTOUTBOUNDREQUESTBATCH
  IMPORTING
    !IV_ID TYPE /AWS1/CN2CAMPAIGNID OPTIONAL
    !IT_OUTBOUNDREQUESTS TYPE /AWS1/CL_CN2OUTBOUNDREQUEST=>TT_OUTBOUNDREQUESTLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cn2putoutboundreqbt01
  RAISING
    /AWS1/CX_CN2ACCESSDENIEDEX
    /AWS1/CX_CN2CONFLICTEXCEPTION
    /AWS1/CX_CN2INTERNALSERVEREX
    /AWS1/CX_CN2INVCAMPAIGNSTATEEX
    /AWS1/CX_CN2RESOURCENOTFOUNDEX
    /AWS1/CX_CN2THROTTLINGEX
    /AWS1/CX_CN2VALIDATIONEX
    /AWS1/CX_CN2CLIENTEXC
    /AWS1/CX_CN2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_id TYPE /AWS1/CN2CAMPAIGNID /AWS1/CN2CAMPAIGNID¶
id
it_outboundrequests TYPE /AWS1/CL_CN2OUTBOUNDREQUEST=>TT_OUTBOUNDREQUESTLIST TT_OUTBOUNDREQUESTLIST¶
outboundRequests
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cn2putoutboundreqbt01 /AWS1/CL_CN2PUTOUTBOUNDREQBT01¶
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->putoutboundrequestbatch(
  it_outboundrequests = VALUE /aws1/cl_cn2outboundrequest=>tt_outboundrequestlist(
    (
      new /aws1/cl_cn2outboundrequest(
        io_channelsubtypeparameters = new /aws1/cl_cn2channelsubtypeprms(
          io_email = new /aws1/cl_cn2emailchannelsubt01(
            it_templateparameters = VALUE /aws1/cl_cn2attributes_w=>tt_attributes(
              (
                VALUE /aws1/cl_cn2attributes_w=>ts_attributes_maprow(
                  value = new /aws1/cl_cn2attributes_w( |string| )
                  key = |string|
                )
              )
            )
            iv_connectsourceemailaddress = |string|
            iv_destinationemailaddress = |string|
            iv_templatearn = |string|
          )
          io_sms = new /aws1/cl_cn2smschannelsubtyp01(
            it_templateparameters = VALUE /aws1/cl_cn2attributes_w=>tt_attributes(
              (
                VALUE /aws1/cl_cn2attributes_w=>ts_attributes_maprow(
                  value = new /aws1/cl_cn2attributes_w( |string| )
                  key = |string|
                )
              )
            )
            iv_cnctsourcephonenumberarn = |string|
            iv_destinationphonenumber = |string|
            iv_templatearn = |string|
          )
          io_telephony = new /aws1/cl_cn2telephonychannel01(
            io_answermachinedetectconfig = new /aws1/cl_cn2answermachinedet00(
              iv_awaitanswermachineprompt = ABAP_TRUE
              iv_enableanswermachinedetect = ABAP_TRUE
            )
            it_attributes = VALUE /aws1/cl_cn2attributes_w=>tt_attributes(
              (
                VALUE /aws1/cl_cn2attributes_w=>ts_attributes_maprow(
                  value = new /aws1/cl_cn2attributes_w( |string| )
                  key = |string|
                )
              )
            )
            iv_connectsourcephonenumber = |string|
            iv_destinationphonenumber = |string|
          )
        )
        iv_clienttoken = |string|
        iv_expirationtime = '20150101000000.0000000'
      )
    )
  )
  iv_id = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_successfulrequests( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_clienttoken = lo_row_1->get_clienttoken( ).
      lv_dialrequestid = lo_row_1->get_id( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_failedrequests( ) into lo_row_2.
    lo_row_3 = lo_row_2.
    IF lo_row_3 IS NOT INITIAL.
      lv_clienttoken = lo_row_3->get_clienttoken( ).
      lv_dialrequestid = lo_row_3->get_id( ).
      lv_failurecode = lo_row_3->get_failurecode( ).
    ENDIF.
  ENDLOOP.
ENDIF.