/AWS1/IF_CUS=>BATCHPUTPROFILEOBJECT()¶
About BatchPutProfileObject¶
Adds multiple profile objects to a domain of a given ObjectType in a single API call.
When adding a specific profile object, like a Contact Record, an inferred profile can get created if it is not mapped to an existing profile. The resulting profile will only have a phone number populated in the standard ProfileObject. Any additional Contact Records with the same phone number will be mapped to the same inferred profile.
When a ProfileObject is created and if a ProfileObjectType already exists for the ProfileObject, it will provide data to a standard profile depending on the ProfileObjectType definition.
BatchPutProfileObject needs an ObjectType, which can be created using PutProfileObjectType.
Method Signature¶
METHODS /AWS1/IF_CUS~BATCHPUTPROFILEOBJECT
IMPORTING
!IV_DOMAINNAME TYPE /AWS1/CUSNAME OPTIONAL
!IV_OBJECTTYPENAME TYPE /AWS1/CUSTYPENAME OPTIONAL
!IT_ITEMS TYPE /AWS1/CL_CUSBTCPUTPFLOBJREQITM=>TT_BATCHPUTPFLOBJREQITEMLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cusbatchputpflobjrsp
RAISING
/AWS1/CX_CUSACCESSDENIEDEX
/AWS1/CX_CUSBADREQUESTEX
/AWS1/CX_CUSINTERNALSERVEREX
/AWS1/CX_CUSRESOURCENOTFOUNDEX
/AWS1/CX_CUSTHROTTLINGEX
/AWS1/CX_CUSCLIENTEXC
/AWS1/CX_CUSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainname TYPE /AWS1/CUSNAME /AWS1/CUSNAME¶
The unique name of the domain.
iv_objecttypename TYPE /AWS1/CUSTYPENAME /AWS1/CUSTYPENAME¶
The name of the profile object type.
it_items TYPE /AWS1/CL_CUSBTCPUTPFLOBJREQITM=>TT_BATCHPUTPFLOBJREQITEMLIST TT_BATCHPUTPFLOBJREQITEMLIST¶
A list of items to add to the domain.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cusbatchputpflobjrsp /AWS1/CL_CUSBATCHPUTPFLOBJRSP¶
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->batchputprofileobject(
it_items = VALUE /aws1/cl_cusbtcputpflobjreqitm=>tt_batchputpflobjreqitemlist(
(
new /aws1/cl_cusbtcputpflobjreqitm(
iv_id = |string|
iv_object = |string|
)
)
)
iv_domainname = |string|
iv_objecttypename = |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_successful( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_name = lo_row_1->get_id( ).
lv_string1to255 = lo_row_1->get_profileobjectuniquekey( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_failed( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_name = lo_row_3->get_id( ).
lv_responsecode = lo_row_3->get_code( ).
lv_text = lo_row_3->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.