Work with Migration Exchange

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

1public 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

1public Slack.MigrationExchangeRequest build()

Return Value

Type: Slack.MigrationExchangeRequest

teamId(teamId) 

Signature

1public Slack.MigrationExchangeRequest.Builder teamId(String teamId)

Parameters

teamId

Type: String

Return Value

Type: Slack.MigrationExchangeRequest.Builder

toOld(toOld) 

Signature

1public 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

1public 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

1public String getEnterpriseId()

Return Value

Type: String

getInvalidUserIds() 

Signature

1public List<String> getInvalidUserIds()

Return Value

Type: List<String>

getTeamId() 

Signature

1public String getTeamId()

Return Value

Type: String

Beta Feature

This feature is not generally available. It is not part of your purchased Services. This feature is subject to change, may be discontinued with no notice at any time in SFDC’s sole discretion, and SFDC may never make this feature generally available. Make your purchase decisions only on the basis of generally available products and features. This feature is made available on an AS IS basis and use of this feature is at your sole risk.