Skip to content

/AWS1/IF_QQA=>GETQAPPSESSIONMETADATA()

About GetQAppSessionMetadata

Retrieves the current configuration of a Q App session.

Method Signature

IMPORTING

Required arguments:

iv_instanceid TYPE /AWS1/QQAINSTANCEID /AWS1/QQAINSTANCEID

The unique identifier of the Amazon Q Business application environment instance.

iv_sessionid TYPE /AWS1/QQAUUID /AWS1/QQAUUID

The unique identifier of the Q App session.

RETURNING

oo_output TYPE REF TO /aws1/cl_qqagetqappsessmetout /AWS1/CL_QQAGETQAPPSESSMETOUT

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_qqa~getqappsessionmetadata(
  iv_instanceid = |string|
  iv_sessionid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_uuid = lo_result->get_sessionid( ).
  lv_string = lo_result->get_sessionarn( ).
  lv_sessionname = lo_result->get_sessionname( ).
  lo_sessionsharingconfigura = lo_result->get_sharingconfiguration( ).
  IF lo_sessionsharingconfigura IS NOT INITIAL.
    lv_sessionsharingenabled = lo_sessionsharingconfigura->get_enabled( ).
    lv_sessionsharingacceptres = lo_sessionsharingconfigura->get_acceptresponses( ).
    lv_sessionsharingrevealcar = lo_sessionsharingconfigura->get_revealcards( ).
  ENDIF.
  lv_boolean = lo_result->get_sessionowner( ).
ENDIF.

Retrieves an existing session metadata for an Amazon Q App

Retrieves an existing session metadata for an Amazon Q App

DATA(lo_result) = lo_client->/aws1/if_qqa~getqappsessionmetadata(
  iv_instanceid = |0b95c9c4-89cc-4aa8-9aae-aa91cbec699f|
  iv_sessionid = |56ae47c3-10bc-4c2c-8b27-9b9fe23b3edb|
).