The following are Apex classes for the Slack migration.exchange API method.
MigrationExchangeRequest Class
For Enterprise Grid workspaces, sends a request to map local user IDs to global user IDs.
MigrationExchangeRequest Methods
The following are methods for MigrationExchangeRequest.
builder()
Builds a request object that's used when executing the API call.
Signature
public static Slack.MigrationExchangeRequest.Builder builder()
Return Value
Type: Slack.MigrationExchangeRequest.Builder
MigrationExchangeRequest.Builder Class
Contains methods to build an instance of the Slack.MigrationExchangeRequest class.
A Builder object is obtained by invoking one of the MigrationExchangeRequest.Builder methods defined by the MigrationExchangeRequest class.
MigrationExchangeRequest.Builder Methods
The following are methods for MigrationExchangeRequest.Builder. These methods are optional unless specified otherwise.
build()
Required. Returns an instance of Slack.MigrationExchangeRequest.
Signature
public Slack.MigrationExchangeRequest build()
Return Value
Type: Slack.MigrationExchangeRequest
teamId(teamId)
Signature
public Slack.MigrationExchangeRequest.Builder teamId(String teamId)
Parameters
teamId
Type: String
Return Value
Type: Slack.MigrationExchangeRequest.Builder
toOld(toOld)
Signature
public Slack.MigrationExchangeRequest.Builder toOld(Boolean toOld)
Parameters
toOld
Type: Boolean
Return Value
Type: Slack.MigrationExchangeRequest.Builder
users(users)
Required. A comma-separated list of user IDs, up to 400 per request.
Signature
public Slack.MigrationExchangeRequest.Builder users(List<String> users)
Parameters
users
Type: List<String>
MigrationExchangeResponse Class
For Enterprise Grid workspaces, map local user IDs to global user IDs.
MigrationExchangeResponse Methods
This class contains standard response methods.
The following are methods for MigrationExchangeResponse.
getEnterpriseId()
Signature
public String getEnterpriseId()
Return Value
Type: String
getInvalidUserIds()
Signature
public List<String> getInvalidUserIds()
Return Value
Type: List<String>
getTeamId()
Signature
public String getTeamId()
Return Value
Type: String