Skip to content

/AWS1/CL_GUR=>LISTRECOMMENDATIONFEEDBACK()

About ListRecommendationFeedback

Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.

Method Signature

IMPORTING

Required arguments:

iv_codereviewarn TYPE /AWS1/GURARN /AWS1/GURARN

The Amazon Resource Name (ARN) of the CodeReview object.

Optional arguments:

iv_nexttoken TYPE /AWS1/GURNEXTTOKEN /AWS1/GURNEXTTOKEN

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

iv_maxresults TYPE /AWS1/GURMAXRESULTS /AWS1/GURMAXRESULTS

The maximum number of results that are returned per call. The default is 100.

it_userids TYPE /AWS1/CL_GURUSERIDS_W=>TT_USERIDS TT_USERIDS

An Amazon Web Services user's account ID or Amazon Resource Name (ARN). Use this ID to query the recommendation feedback for a code review from that user.

The UserId is an IAM principal that can be specified as an Amazon Web Services account ID or an Amazon Resource Name (ARN). For more information, see Specifying a Principal in the Amazon Web Services Identity and Access Management User Guide.

it_recommendationids TYPE /AWS1/CL_GURRECOMMENDATIONID00=>TT_RECOMMENDATIONIDS TT_RECOMMENDATIONIDS

Used to query the recommendation feedback for a given recommendation.

RETURNING

oo_output TYPE REF TO /aws1/cl_gurlstrecommendatio01 /AWS1/CL_GURLSTRECOMMENDATIO01

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_gur~listrecommendationfeedback(
  it_recommendationids = VALUE /aws1/cl_gurrecommendationid00=>tt_recommendationids(
    ( new /aws1/cl_gurrecommendationid00( |string| ) )
  )
  it_userids = VALUE /aws1/cl_guruserids_w=>tt_userids(
    ( new /aws1/cl_guruserids_w( |string| ) )
  )
  iv_codereviewarn = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
).

This is an example of reading all possible response values

LOOP AT lo_result->get_recommendationfeedback00( ) into lo_row.
  lv_recommendationid = lo_row_1->get_recommendationid( ).
  LOOP AT lo_row_1->get_reactions( ) into lo_row_2.
    lv_reaction = lo_row_3->get_value( ).
  ENDLOOP.
  lv_userid = lo_row_1->get_userid( ).
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).