Skip to content

/AWS1/CL_WIS=>GETRECOMMENDATIONS()

About GetRecommendations

Retrieves recommendations for the specified session. To avoid retrieving the same recommendations in subsequent calls, use NotifyRecommendationsReceived. This API supports long-polling behavior with the waitTimeSeconds parameter. Short poll is the default behavior and only returns recommendations already available. To perform a manual query against an assistant, use QueryAssistant.

Method Signature

IMPORTING

Required arguments:

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.

IV_SESSIONID TYPE /AWS1/WISUUIDORARN /AWS1/WISUUIDORARN

The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

Optional arguments:

IV_MAXRESULTS TYPE /AWS1/WISMAXRESULTS /AWS1/WISMAXRESULTS

The maximum number of results to return per page.

IV_WAITTIMESECONDS TYPE /AWS1/WISWAITTIMESECONDS /AWS1/WISWAITTIMESECONDS

The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_WISGETRECOMMENDATIO01 /AWS1/CL_WISGETRECOMMENDATIO01