/AWS1/IF_CNC=>LISTCAMPAIGNS()¶
About ListCampaigns¶
Provides summary information about the campaigns under the specified Amazon Connect account.
Method Signature¶
METHODS /AWS1/IF_CNC~LISTCAMPAIGNS
IMPORTING
!IV_MAXRESULTS TYPE /AWS1/CNCMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/CNCNEXTTOKEN OPTIONAL
!IO_FILTERS TYPE REF TO /AWS1/CL_CNCCAMPAIGNFILTERS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cnclistcampaignsrsp
RAISING
/AWS1/CX_CNCACCESSDENIEDEX
/AWS1/CX_CNCINTERNALSERVEREX
/AWS1/CX_CNCVALIDATIONEX
/AWS1/CX_CNCCLIENTEXC
/AWS1/CX_CNCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_maxresults TYPE /AWS1/CNCMAXRESULTS /AWS1/CNCMAXRESULTS¶
The maximum number of results to return per page.
iv_nexttoken TYPE /AWS1/CNCNEXTTOKEN /AWS1/CNCNEXTTOKEN¶
The token for the next set of results.
io_filters TYPE REF TO /AWS1/CL_CNCCAMPAIGNFILTERS /AWS1/CL_CNCCAMPAIGNFILTERS¶
Filter model by type
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cnclistcampaignsrsp /AWS1/CL_CNCLISTCAMPAIGNSRSP¶
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->listcampaigns(
io_filters = new /aws1/cl_cnccampaignfilters(
io_instanceidfilter = new /aws1/cl_cncinstanceidfilter(
iv_operator = |string|
iv_value = |string|
)
)
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_nexttoken = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_campaignsummarylist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_campaignid = lo_row_1->get_id( ).
lv_campaignarn = lo_row_1->get_arn( ).
lv_campaignname = lo_row_1->get_name( ).
lv_instanceid = lo_row_1->get_connectinstanceid( ).
ENDIF.
ENDLOOP.
ENDIF.