Skip to main content

#Slack Developers18 personnes en discutent

Questions and answers about Slack APIs, SDKs and other developer tools, whether you’re building for all Slack users or just your team.

We are seeing a repeating error from the Salesforce Slack app whenever a user posts a message in Slack. The message in the channel is delivered normally, but the author also gets an ephemeral error in the Salesforce app DM. 

 

Error (Only visible to you): 

There was a problem processing the Slack event MESSAGE_EVENT ErrorType: NullPointerException 

 

This happens on every message typed directly in Slack. 

Please advise how to stop the Salesforce app from sending these errors (configuration, scopes/event subscription, or a known platform issue). If the user sends a message from Salesforce, this error does not occur and everything works correctly;  

 

 

There was a problem processing the Slack event MESSAGE_EVENT ErrorType: NullPointerException

 

 

 

#Slack  #Slack Developers  #Slack Community  #Integration

2 réponses
  1. Hier, à 07:12

    We don’t have a custom Apex Slack app: no .slackapp / SlackApp metadata, no class extending Slack.EventDispatcher, and Apex Slack App User Setup is empty (no System User / Unmapped User row). The only Slack Apex in the org is SDO demo code (Slack Mission Control: org link / bundles), which is not subscribed to message events.

    The ephemeral error comes from the first-party Salesforce app in Slack (Messages tab, “Sending messages to this app has been turned off”), on every message typed in Slack. Salesforce -> Slack does not trigger it.

    So there is no handler where we can null-check getUser() / getText(), and we can’t remove message from Event Subscriptions — that app isn’t ours on api.slack.com.

    If the same NPE string is also used when Salesforce’s own inbound handler throws, that would explain it. Any idea how to stop or debug that without a custom SlackApp?

0/9000

⛰️🛡️ New Hands-on Workshop for Premier & Signature Developers: Secure the Code: Find and Fix Vulnerabilities (DEX003) 

 

Insecure custom code is one of the leading causes of data breaches. In this 90-minute instructor-led workshop, you'll step into the role of a security-focused developer to audit and remediate critical vulnerabilities in Lightning components and Apex classes through a series of challenges.  

This hands-on workshop teaches developers how to prevent script injection, encrypt data securely, manage secrets, and control record access. You'll also learn to identify authentication flaws and data exposure risks. this practical workshop is for developers working with custom code at any stage: 

  • Build new code — learn to bake in secure patterns from the start, so vulnerabilities never make it to production
  • Review existing code — sharpen your eye for spotting injection flaws, insecure data handling, and access control gaps in code you didn't write
  • Maintain and harden production orgs — Use the Developer Console or VS Code to apply Salesforce platform security best practices that protect applications from evolving threats

Sessions are live and available! :calendar:

  • Wed Sep 2 — 3:30pm CET/Paris
  • Tues Sep 8 — 3:30pm ET/New York
  • Mon Sep 21 — 9am IST/Kolkata
  • Mon Oct 19 — 9am ET/New York
  • Check the session listings for additional workshops across regions :tada:

Interested in the Admin version of this security workshop? Check out upcoming sessions for ADX012

 

👉 Premier and Signature customersRegister today on Trailhead Academy — Course code: DEX003

 

#Salesforce Developer #Slack Developers

4 commentaires
  1. 9 sept., 05:27

    This is a great hands-on initiative for Salesforce developers. Security is often overlooked during development, so learning how to identify and fix vulnerabilities in Apex and Lightning components is extremely valuable. The practical, challenge-based approach makes this especially useful for developers working on real-world orgs. 

0/9000
Purnachander Pasunuri a posé une question dans #Slack Community

We are facing a limitation with the Slack sandbox (developer environment), where the user limit is restricted to 8 members. For our use case, this is quite limiting, as we want to perform realistic UAT and integration testing that closely mirrors our production environment.

I have a couple of questions:

  1. Are there any options or recommended approaches to create a sandbox/testing environment that more closely resembles a production Enterprise Grid setup (in terms of users, apps, and integrations)?
  2. How are other organizations handling large-scale testing given the sandbox user limit?
  3. What are the best practices or enterprise-level strategies for testing Slack + Salesforce integrations before going live?

Any guidance, real-world experiences, or recommended approaches would be greatly appreciated.

Thanks in advance! 

 

#Slack Community  #Slack Developers  #Slack  #Slack Basics

4 réponses
  1. 30 août, 02:12

    This is a good point about the challenge of testing Slack + Salesforce integrations at enterprise scale. With an 8-member sandbox limit, using a combination of focused integration tests, representative test users, and staged UAT seems like a practical way to identify issues before production.

    For smaller customization needs during UAT, tools such as espaço invisível para copiar e colar can also be useful when testing how different text formats, usernames, or messages behave across Slack and other platforms.

0/9000

 Hi there! Happy to join this community😊 

 

I build an incident management app and I'd like to keep a channel canvas title in sync with the incident status. I've been able to create the canvas through the API but the following updates of the canvas title don't get reflected in the canvas tab name.

The only workaround I found is to manually clear the tab name so that it get in sync with the canvas title.

I couldn't find a way to do it through the API. 

 

Is this a known limitation of the API..? I guess it's a niche topic 😅 

 

Thanks for your help! 

 

#Slack Developers

3 réponses
  1. 21 août, 16:39

    Hey Sebastien, 

     

    Not a bug in your API usage, this is a genuine gap. The canvases.edit rename operation with title_content updates the canvas's underlying title, but Slack's channel canvas tab has a separate, independently-set "tab name" property. That tab name gets set once (typically when the canvas is first added to a tab) and doesn't automatically re-sync to the canvas title afterward, which matches exactly what you're seeing: manually clearing the tab name forces it to re-sync, but API-based title renames don't propagate to it. 

     

    I couldn't find any Slack API method (canvases.edit, canvases.sections.lookup, conversations.canvases.create) that exposes or resets the tab name specifically, only the canvas title itself. So this looks like a genuine limitation, not something you're missing, there's no documented API method for touching the tab name independently. 

     

    Worth filing this as a bug/feature request via Slack's developer support, since the manual "clear the tab name" workaround you found is really a UI-only re-sync trigger that has no API equivalent yet. 

     

    Reference:

    https://docs.slack.dev/reference/methods/canvases.edit/

0/9000

I'm developing an onboarding plans via API in slack canvas and I wanted to make an interactive element inside of a table but it seems that tables in cavases aren't supporting interactive elements, for example checkboxes 

 

any plans to enable this? 

 

#Slack Developers

3 réponses
  1. 21 juil., 21:16

    Yes , Canvas content is Markdown-based So Slack Canvas tables don't support interactive elements like checkboxes, buttons, or dropdowns.

0/9000

I have developed a Slack app that integrates with Salesforce. The app's Request URL currently points to my Salesforce Site endpoint, which processes Slack events using Apex. 

 

I plan to distribute this app to multiple customers. Each customer has their own Salesforce org and therefore their own Site URL. 

 

Since a Slack app supports only a single Request URL, how can a multi-tenant architecture be implemented?     What is the recommended approach for routing requests to the correct customer's Salesforce org after they install the app? 

0/9000

Hi Everyone,

Please share the complete end-to-end details required for the setup of SlackCRM Business plus V2 edition , along with all related prerequisites. This is urgently required from my end, and I would appreciate your prompt support.

The following details are required:

  • SlackCRM setup process
  • Limitations and constraints of SlackCRM
  • Prerequisites for integrating Salesforce with Slack Business+ V2
  • Limitations related to email and storage
  • Any additional setup dependencies, configurations, licensing, or technical considerations

Please provide all available documentation and relevant details associated with this setup.

Looking forward to your response.

Thanks. 

 

#Slack Developers  #Slack Community  #Slack Certified  #Slack Basics

3 réponses
  1. 26 juin, 12:14

    From what I've been seen so far, SlackCRM on Business+ V2 appears to require both the appropriate Slack subscription and compatible Salesforce licensing, but the publicly available documentation on the setup process and limitations seems quite limited.

    For anyone planning a deployment, I would recommend verifying:

    • Required Slack and Salesforce license types
    • Admin permissions and authentication requirements
    • Supported integration features on Business+ versus Enterprise Grid
    • Sandbox and testing limitations
    • Data retention, storage, and email-related constraints

    If anyone from Slack or someone who has already implemented SlackCRM in production could share the official documentation or real-world experience, it would be extremely helpful for the community.

0/9000
Kumkum Ajmera a posé une question dans #Slack Community

Hi Everyone, 

Please share the complete end-to-end details required for the setup of SlackCRM Business plus V2 edition , along with all related prerequisites. This is urgently required from my end, and I would appreciate your prompt support. 

The following details are required:

  • SlackCRM setup process
  • Limitations and constraints of SlackCRM
  • Prerequisites for integrating Salesforce with Slack Business+ V2
  • Limitations related to email and storage
  • Any additional setup dependencies, configurations, licensing, or technical considerations

Please provide all available documentation and relevant details associated with this setup.

Looking forward to your response.

Thanks.  

 

 

 

#Slack Community

1 réponse
  1. 22 juin, 20:54

    Hi there! Great questions, happy to help clarify what's available with the customer management feature in the new version of Slack Business+. 

     

    What is it?

     

    Slack's built-in CRM tools let you build contact records, log customer interactions, and collaborate with your team — all within Slack. Under the hood, it relies on Salesforce Free Edition, which is automatically created when you set up a contact list.  

     

    End-to-end setup process

     

     

    Step 1 — Enable customer management 

    • Click your profile picture → PreferencesSalesforceCreate New Salesforce Org
    • This must be done by a Workspace Owner

    Step 2 — Create your contact list 

    • Import from Gmail, a CSV file, or build from scratch
    • Access via: Home tab → Salesforce section in the sidebar → All Contacts

    Step 3 — Assign access 

    • Go to AdminManage Salesforce Organizations → select your org → Users tab → Add users to Salesforce org
    • Up to 100 people can be granted access
    • Permission levels are available via a drop-down menu

    Key capabilities

    • Log customer interactions (calls, emails, meetings) directly from a contact record 
    • Share contacts in DMs or channels 
    • Auto-sync Google Calendar and email events via Einstein Activity Capture 
    • Customize contact fields (add priority, status, and more) 

    Known limitations / constraints 

    • Access is capped at 100 users
    • Runs on Salesforce Free Edition — advanced Salesforce features/configurations beyond what's described in the help article are not part of this offering 

    For the full setup walkthrough, check out the official help article: Manage customer contacts in Slack

0/9000

Hi All, 

 

I am simply trying to send a slack channel message whenever an opportunity moves to closed won stage.  

 

I have an opportunity record trigger asycn flow that simply runs down the 'run async' path and has a decision check on the opportunity stage. If closed won, it runs down to Send Slack Message action and I have populated the required fields, slack app, slack workspace, executive action as, slack conversation id, and the slack message. 

 

However, during debug in my developer sandbox, I keep getting the error message:  

We couldn't run action

Send Slack Message because something went wrong.

 

Hide Error

 

Info

Error

An error occurred. Try again, or contact Salesforce Customer Support and provide this error ID: 1299900440-35892 (820288246)

Inputs

slackAppIdForToken = A03269G3DNE

slackWorkspaceIdForToken = T0AUVR7GZ62

userIdForToken = null

slackConversationId = C0AUUNER0PP

slackBotName = null

slackMessage = {!tt_SlackClosedWonNotification} (Hello team, A new opportunity has been marked Closed Won. Here are the details: Opportunity: Test Contract Type Account: 001WG00001AjV6DYAV Owner: Amount: Type: New Business)

viewApiName = null

recordId = {!$Record.Id} (006WG00000sl8HZYAY)

slackMessageTimestamp = null 

 

Am I doing something wrong? The details appear to be grabbing the correct values from my test opportunity? Perhaps my slack conversation id is incorrect? 

 

Thanks in advance.  

 

-Roman 

 

#Slack Community  #Slack Developers  #Slack

2 réponses
  1. 28 mai, 01:43

    @Gohar Clients thanks for the message back. I was able to solve the issue FYI by using the alternative send message to slack channel DML instead. That slack action only needed a slack channel id and an email template. 

0/9000

Hi, 

I have a custom application on Slack and I want to use the application to perform different actions from Salesforce to slack. I am getting the below error while sending a message from the SF flow to slack app channel. 

 

Error : The Slack App with an ID of A0B2JLPG1S4 no longer has access to this Slack action. Select a different Slack App to run this Slack action. If there aren't other choices available, contact Salesforce Customer Support.

 

 

 

 

#Slack Developers

1 réponse
0/9000