Use these Apex classes to get access to a Slack client.
The following methods are deprecated on the App.apex class: getConnectedSalesforceUserId, getConnectedSalesforceUserIdMap,getConnectedSlackUserId,
getConnectedSlackUserIdMap. The Slack.App class required that you access the listed methods within the context of an Apex Slack app. In the Summer ’23 release,
the UserMappingService class exposes these methods without requiring app context. Use the UserMappingService methods instead for an accurate picture of your org mappings.
Note
App Class
The Slack.App class represents a Slack app that enables interacting with a user or bot.
Gets the Salesforce user IDs given a list of Slack user IDs in a Slack workspace for a specific Slack app. If at least one successful mapping is possible, then the returned map contains an entry for each supplied Slack user ID.
Gets the Slack user mappings given a list of Salesforce User IDs in a Slack workspace for a specific Slack app. If at least one successful mapping is possible, then the returned map contains an entry for each supplied Salesforce user ID.
The Slack team ID associated with the Slack user ID.
salesforceUserIds
Type: List<String>
The Salesforce user IDs associated with the Slack user ID.
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.