/AWS1/IF_WIS=>GETASSISTANTASSOCIATION()¶
About GetAssistantAssociation¶
Retrieves information about an assistant association.
Method Signature¶
METHODS /AWS1/IF_WIS~GETASSISTANTASSOCIATION
  IMPORTING
    !IV_ASSISTANTASSOCIATIONID TYPE /AWS1/WISUUIDORARN OPTIONAL
    !IV_ASSISTANTID TYPE /AWS1/WISUUIDORARN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wisgetassistantasso01
  RAISING
    /AWS1/CX_WISACCESSDENIEDEX
    /AWS1/CX_WISRESOURCENOTFOUNDEX
    /AWS1/CX_WISVALIDATIONEX
    /AWS1/CX_WISCLIENTEXC
    /AWS1/CX_WISSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_assistantassociationid TYPE /AWS1/WISUUIDORARN /AWS1/WISUUIDORARN¶
The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.
iv_assistantid TYPE /AWS1/WISUUIDORARN /AWS1/WISUUIDORARN¶
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_wisgetassistantasso01 /AWS1/CL_WISGETASSISTANTASSO01¶
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->getassistantassociation(
  iv_assistantassociationid = |string|
  iv_assistantid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_assistantassociationdat = lo_result->get_assistantassociation( ).
  IF lo_assistantassociationdat IS NOT INITIAL.
    lv_uuid = lo_assistantassociationdat->get_assistantassociationid( ).
    lv_arn = lo_assistantassociationdat->get_assistantassociationarn( ).
    lv_uuid = lo_assistantassociationdat->get_assistantid( ).
    lv_arn = lo_assistantassociationdat->get_assistantarn( ).
    lv_associationtype = lo_assistantassociationdat->get_associationtype( ).
    lo_assistantassociationout = lo_assistantassociationdat->get_associationdata( ).
    IF lo_assistantassociationout IS NOT INITIAL.
      lo_knowledgebaseassociatio = lo_assistantassociationout->get_knowledgebaseassociation( ).
      IF lo_knowledgebaseassociatio IS NOT INITIAL.
        lv_uuid = lo_knowledgebaseassociatio->get_knowledgebaseid( ).
        lv_arn = lo_knowledgebaseassociatio->get_knowledgebasearn( ).
      ENDIF.
    ENDIF.
    LOOP AT lo_assistantassociationdat->get_tags( ) into ls_row.
      lv_key = ls_row-key.
      lo_value = ls_row-value.
      IF lo_value IS NOT INITIAL.
        lv_tagvalue = lo_value->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.