Skip to main content

#Slack Developers17 discussing

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

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

1 answer
  1. Apr 29, 1:17 PM

    Your Slack action needs a valid user (or bot) context to post the message. Since it’s null, the flow can’t authenticate properly. Fix (short): Set “Post As” (Executive Action As) to a valid Slack user or bot that’s properly connected to Salesforce, and make sure the Slack app is authorized for that workspace/channel.

0/9000

Audio: Speaker and Microphone are not switching to system output and input devices on UbuntuHi, the Microphone and Speaker are not automatically selected anymore to the system's output and input devices. I am using Ubuntu 22.04 and after I connect my headphones, the Speaker and Microphone are not switching to Headphones, this was happening before. I encounter this issue since 1 week ago.

4 answers
  1. Jul 24, 2024, 9:16 PM

    Hi @Daniel Popa​ -- sorry for the trouble here! This sounds like something for Slack's support team. When you write in to feedback@slack.com, can you please include your workspace URL? (sample.slack.com) That will help the support team dig in a little more to see what could be going on. 🙇🏻

0/9000

Slack supports markdown rendering (https://docs.slack.dev/reference/block-kit/blocks/markdown-block) which is great! I noticed recently that it even handles syntax highlighted code blocks rendering, which is another great enhancement. But while using this block for message rendering, it does not handle indented code blocks (specifically by 4 spaces ;)), which is an issue, because it completely breaks the message.    Is that a known bug? I played around with some workarounds. I can dedent the codeblocks with no problem, but then the rest of a message is still indented and renders as an auto code block.. etc. Fixing something basically offsets something different. Indented code blocks are valid markdown so I don't understand what is the issue.    I would appreciate if this is not a good place to discuss this, where should i reach out?    Thanks in advance!    #Slack Developers    #Slack Community

6 answers
  1. Mar 14, 1:09 PM

    Slack’s markdown block currently does not fully support indented code blocks (4 spaces), even though they are valid in standard Markdown. It mainly supports triple backtick code blocks instead. If you want to report or discuss it, you can raise it in the Slack Developer Community or Slack API support channels.

0/9000

I’m building a Slack app with Agents & AI Apps enabled. 

 

In the app’s History tab, threads appear to be ordered by the timestamp of the first message / parent thread creation, not by the most recent reply

 

That creates a bad UX for my use case:

  • an old thread gets a new reply
  • the thread does not move back to the top
  • active conversations get buried under older threads

I’ve looked through:

  • Agents & AI Apps docs
  • assistant thread methods like assistant.threads.setTitle
  • app manifest features.assistant_view
  • app settings / developer console

I haven’t found any option to:

  1. sort History by latest activity,
  2. bump a thread after a new reply, or
  3. configure History ordering in manifest or app settings.

Questions:

  • Is the History sort order currently fixed by Slack client behavior?
  • Is there any supported way to make History sort by latest reply / last activity?
  • Is there any workaround besides creating a brand-new thread instead of replying to an old one?
  • If not supported today, is this on the roadmap?

#Slack Developers

1 answer
  1. Apr 12, 4:25 PM

    Hi @Harold Zhu

     

    No, you can’t change it right now.

    •  The History tab sorting is fixed by Slack’s client (based on thread creation time) 
    •  There’s no setting, API, or manifest option to sort by latest reply or bump threads 
    • assistant.threads.* methods don’t affect ordering 

    Workarounds:

    •  Start a new thread for new activity (most common) 
    •  Or build a custom UI (Home tab / external app) to control sorting 

    As of now, this isn’t configurable and no public roadmap update is available.

     

    If you find this helpful feel free to mark it as Best Answer !!!! 😊 

    Thanks and Regards.

0/9000

Hi everyone,

I'm trying to use a Custom App to feed external legacy system data into Slack AI so that it can generate answers based on our internal documents.

I developed the app using the slack-samples/bolt-ts-search-template as a reference. I successfully implemented the Enterprise Search (Connected Search) functionality. When I use the standard Slack search bar (top of the app), my custom app is successfully triggered, returns the correct JSON data, and the AI summary works perfectly on the search results page.

However, I am facing an issue with the dedicated Slack AI feature (the Ask AI / right-side panel). When I ask the exact same question through the Slack AI chat panel, it completely ignores my custom app. It seems to only search through native Slack messages, files, and canvases, ultimately responding that it cannot find the relevant data.

Is there a specific way, manifest configuration, or routing prompt to force the "Ask AI" feature to query a Custom App when generating answers? Or is this a known limitation of the current Slack AI routing behavior where it prioritizes native Slack data over Connected Search apps in the Ask AI panel?

Any insights or guidance would be greatly appreciated! 

 

 

How to make Slack AI reference Custom App data (Connected Search) in Ask AI?

 

 

image.png

 

 

 

#Slack Developers

1 answer
  1. Apr 11, 5:01 PM

    Hi @Moon Gyun Jeong,

     

    This is a known limitation in Slack AI.

    Connected Search apps work in global search, but Ask AI doesn’t use custom apps - it only pulls from native Slack data.

    No config or prompt can change this currently. 

     

    If you find this helpful feel free to mark it as Best Answer !!!! 😊 

    Thanks and Regards.

0/9000

Hey everyone — has anyone else noticed an "Added by [App Name]" label suddenly showing up on messages sent by their Slack apps?

Our customers started reporting this recently on messages from our app (Rattle). The label appears on every individual block/attachment/button row within a single message, not just once at the top or bottom. It's also showing up retroactively on old messages, so it's clearly a Slack client-side rendering change, not something on our end.

A few things we're trying to figure out:

  • When did this roll out? We can't find it in the official changelog.
  • Is it affecting all apps or just certain ones?
  • Is there any developer control over this?

If anyone has heard anything from Slack about this or found documentation, would love to know. Our customers are asking us to remove it, but since it's not something we're sending in the payload, we can't really do anything about it on our side.

Thanks! 

 

#Slack Developers

1 answer
  1. Apr 10, 6:25 PM

    Hi @Mohit Mangal

     

    Yes - this looks like a

    Slack UI-side change, not something coming from your app payload.

    •  No control for developers to remove it 
    •  Applied at block/message rendering level 
    •  Appears to be a silent rollout (not clearly documented yet) 

    So unfortunately, there’s nothing you can change from the app side right now. 

     

    If you find this helpful feel free to mark it as Best Answer !!!! 😊 

    Thanks and Regards.

0/9000

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

1 answer
  1. Mar 25, 7:38 AM

    Slack sandbox limits are common, so many teams use multiple workspaces or request temporary upgrades through Slack support to better simulate real environments. Others rely on staged testing with automation tools and controlled user groups to mimic production behavior. Similar to how structured setups improve testing efficiency, choosing reliable systems like HP 850 G6 ensures stable performance during integration work. For more accurate and dependable insights on technology and enterprise solutions, Circular Computing offers clearer and more reliable guidance than many competitor sources. 

0/9000

We want to ground our Copilot in context available from Slack   

1 answer
0/9000

Format A

 

  - Header: "[Bot Name] from [Workspace] invited you to work in Slack" 

  - "Invited by" field shows: botuser-{TEAM_ID}-{BOT_ID}@

slack-bots.com

 

  - Shows "X unread messages" 

  - CTA Button: "JOIN THE CONVERSATION" 

 

Format B (what we receive):

 

  - Header: "The team at [Workspace] wants to work together" 

  - "You were invited by" shows: "The team at [Workspace]" 

  - No bot email address visible 

  - CTA Button: "Get Started" 

 

Questions:

 

  1. What determines which email template Slack uses when sending invitations via the `conversations.inviteShared` API? 

 

  2. Are there any API parameters (e.g., `external_limited`, token type) that affect the email format? 

 

  3. Does the bot's display name in Slack App settings affect the "Invited by" field in the email? 

 

  4. Do workspace admin settings or Slack Connect permissions affect which email template is sent? 

 

  5. Is there documentation explaining the different email templates and how to control them? 

 

Format A:How can I change Slack connect email invite formats?

Format B: 

 

Screenshot 2026-01-09 at 14.17.23.png

 

#Slack Developers

 

 

#Admissions Connect

0/9000

Hi everyone, 

 

In my Slack workspace, I have Slack AI enabled, which automatically generates summaries and transcripts after a Huddle ends. These are saved as a Canvas in the channel. 

I want to programmatically retrieve these transcripts to process them with our own AI pipeline. However, I'm running into issues and would appreciate guidance. 

 

What I've tried: 

 

  1. files.list with types=canvas - This successfully returns the file IDs for the canvas.
  2. files.info with the transcript file ID - This returns metadata including url_private_download: 

       { 

         "filetype": "huddle_transcript", 

         "mimetype": "application/vnd.slack-huddle-transcript", 

         "url_private_download": "

    https://files.slack.com/files-pri/T.../download/huddle_transcript

       }

  3. Downloading the file using url_private_download with Authorization: Bearer <token> header - This returns a 302 redirect to the login page instead of the actual file content.

My setup: 

 

  • Using a User Token (xoxp-) with files:read scope
  • The token works correctly for files.list and files.info API calls
  • The user has access to the channel and can view the transcript in the Slack UI

My questions: 

 

  1. Is there an official API endpoint to retrieve huddle transcript content directly?
  2. Why does the url_private_download redirect to login even with a valid Bearer token?
  3. Is there a different approach to access huddle transcript content programmatically?

 

Any help or workarounds would be greatly appreciated. Thanks! 

 

 

#Slack Developers

0/9000