Skip to content

/AWS1/CL_WIS=>UPDATEKNOWLEDGEBASETMPLURI()

About UpdateKnowledgeBaseTemplateUri

Updates the template URI of a knowledge base. This is only supported for knowledge bases of type EXTERNAL. Include a single variable in ${variable} format; this interpolated by Wisdom using ingested content. For example, if you ingest a Salesforce article, it has an Id value, and you can set the template URI to https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*${Id}*/view.

Method Signature

IMPORTING

Required arguments:

iv_knowledgebaseid TYPE /AWS1/WISUUIDORARN /AWS1/WISUUIDORARN

The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.

iv_templateuri TYPE /AWS1/WISURI /AWS1/WISURI

The template URI to update.

RETURNING

oo_output TYPE REF TO /aws1/cl_wisupknowledgebaset01 /AWS1/CL_WISUPKNOWLEDGEBASET01

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->/aws1/if_wis~updateknowledgebasetmpluri(
  iv_knowledgebaseid = |string|
  iv_templateuri = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_knowledgebasedata = lo_result->get_knowledgebase( ).
  IF lo_knowledgebasedata IS NOT INITIAL.
    lv_uuid = lo_knowledgebasedata->get_knowledgebaseid( ).
    lv_arn = lo_knowledgebasedata->get_knowledgebasearn( ).
    lv_name = lo_knowledgebasedata->get_name( ).
    lv_knowledgebasetype = lo_knowledgebasedata->get_knowledgebasetype( ).
    lv_knowledgebasestatus = lo_knowledgebasedata->get_status( ).
    lv_timestamp = lo_knowledgebasedata->get_lastcontentmodtime( ).
    lo_sourceconfiguration = lo_knowledgebasedata->get_sourceconfiguration( ).
    IF lo_sourceconfiguration IS NOT INITIAL.
      lo_appintegrationsconfigur = lo_sourceconfiguration->get_appintegrations( ).
      IF lo_appintegrationsconfigur IS NOT INITIAL.
        lv_genericarn = lo_appintegrationsconfigur->get_appintegrationarn( ).
        LOOP AT lo_appintegrationsconfigur->get_objectfields( ) into lo_row.
          lo_row_1 = lo_row.
          IF lo_row_1 IS NOT INITIAL.
            lv_nonemptystring = lo_row_1->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDIF.
    lo_renderingconfiguration = lo_knowledgebasedata->get_renderingconfiguration( ).
    IF lo_renderingconfiguration IS NOT INITIAL.
      lv_uri = lo_renderingconfiguration->get_templateuri( ).
    ENDIF.
    lo_serversideencryptioncon = lo_knowledgebasedata->get_serversideencryptionconf( ).
    IF lo_serversideencryptioncon IS NOT INITIAL.
      lv_nonemptystring = lo_serversideencryptioncon->get_kmskeyid( ).
    ENDIF.
    lv_description = lo_knowledgebasedata->get_description( ).
    LOOP AT lo_knowledgebasedata->get_tags( ) into ls_row_2.
      lv_key = ls_row_2-key.
      lo_value = ls_row_2-value.
      IF lo_value IS NOT INITIAL.
        lv_tagvalue = lo_value->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.