Skip to content

/AWS1/CL_SGM=>LISTWORKFORCES()

About ListWorkforces

Use this operation to list all private and vendor workforces in an Amazon Web Services Region. Note that you can only have one private workforce per Amazon Web Services Region.

Method Signature

IMPORTING

Optional arguments:

IV_SORTBY TYPE /AWS1/SGMLSTWORKFORCESSORTBY00 /AWS1/SGMLSTWORKFORCESSORTBY00

Sort workforces using the workforce name or creation date.

IV_SORTORDER TYPE /AWS1/SGMSORTORDER /AWS1/SGMSORTORDER

Sort workforces in ascending or descending order.

IV_NAMECONTAINS TYPE /AWS1/SGMWORKFORCENAME /AWS1/SGMWORKFORCENAME

A filter you can use to search for workforces using part of the workforce name.

IV_NEXTTOKEN TYPE /AWS1/SGMNEXTTOKEN /AWS1/SGMNEXTTOKEN

A token to resume pagination.

IV_MAXRESULTS TYPE /AWS1/SGMMAXRESULTS /AWS1/SGMMAXRESULTS

The maximum number of workforces returned in the response.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SGMLISTWORKFORCESRSP /AWS1/CL_SGMLISTWORKFORCESRSP