Questions tagged [slack-block-kit]

Block Kit is a UI framework for Slack apps that offers a balance of control and flexibility when building experiences in messages and other surfaces. Customize the order and appearance of information and guide users through your app's capabilities by composing, updating, sequencing, and stacking blocks — reusable components that work almost everywhere in Slack.

172 questions
0
votes
1 answer

Using slack API to get conversation lists

I am trying to invoke following slack API to fetch private and public channels. https://api.slack.com/methods/conversations.list By default as per slack documentation 200 channels are returned at a time when limit is given 1000. I am passing types=…
0
votes
0 answers

multi external select in a modal isn't showing anything

I have a modal with a block of type multi_external_select this is the full block { "type": "section", "block_id": "city_select", "text": { "type": "mrkdwn", "text": "*Choose the cities affected*" }, "accessory": { …
0
votes
1 answer

slack block input to variable

i just want to map my inputs to variables in slack, app.message(':wave:', async ({say}) => { await say({ "blocks": [ { "block_id":"input_1", "type": "input", "element": { "type": "plain_text_input", …
0
votes
1 answer

Nexudus Coworker desks fields have empty array value for the users who have their desks

I have integrated Nexudus to Slack bot, and I want to get the desks information of a coworker user from Nexudus. I can user nexudus coworkers endpoint to get the full information of coworker, and it includes the Desks field in the response body. But…
Ping Zhao
  • 266
  • 5
  • 19
0
votes
1 answer

Slack Bolt (Python) get values from modal and datepicker errors

I am creating a Slack app in Bolt framework for Python. I successfully created new command, which open new modal window with text input and datepicker. The problem is, that when trying to submit I receive error: We had some trouble connecting. Try…
ZigaK
  • 21
  • 4
0
votes
1 answer

Slack API: Attach File Block in Modal

I am trying to develop a Slack app to open Tickets on a Kanban Board on Notion from Slack directly. All good, except in the case the user wants to open a ticket with a file attached. I haven't seen any action available for attaching files to include…
E. Faslo
  • 325
  • 5
  • 19
0
votes
1 answer

How to call modal window instead of message with blocks in Slack app?

After command '/day-off' in my Slack app this code calls message with blocks. But I need a modal window with same blocks. How to do that? let newTimeOff = 'test'; if (ctx.state.isSlackBot) { newTimeOff = { blocks: [ // Start…
Roman
  • 1
0
votes
0 answers

C# Slack Slash Command response JSON doesn't work

I am trying to make a simple Slack slash command that should get a block like this as a response: { "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "*It's 80…
BladeZ
  • 75
  • 5
0
votes
1 answer

Slack Web API | User Bot Builder Payload

There is a slack Web API to post a message to slack. chat.postMessage This works completely fine with normal text. Wanted to check if we can use the Bot Kit Builder JSON payload with Web API to post rich cards via Slack Web API as well?
404
  • 249
  • 6
  • 16
0
votes
0 answers

Slack Bolt - Update View On Submit

I am trying to build a multistep Slack modal using the Bolt library. My goal is to gather user input from a select field, then when the user clicks the Submit button, using that input I would pass back the next modal based on their selection. Here's…
0
votes
0 answers

Issue updating modal with slack using views.update api

When I am trying to update my modal in my slack app it is giving this error message: Error returned when the given view_id or external_id doesn't exist. This is my code of updating the modal, help me what is going wrong here or if something is…
0
votes
1 answer

How do we mention or tag a group member using Slack's Block Kit Builder?

I know I can tag a member using <@XXXXXXX> where XXXXX=member id. Is there any way to do the same, but tagging slack groups instead ? (slack groups does not seem to have a member id associated to it...)
0
votes
0 answers

I'm using the Slack Blockkit framework to construct the user interface. How to use the plaintext block to display data?

For instance, I have a dictionary named "resultmessage" that stores the details of the companies. How can I now display the "resultmessage" in paintext or mrkdwn block payload = Message( blocks=[ Section( …
Shravya
  • 1
  • 1
0
votes
1 answer

how to apply Slack app_home_opened event in Python Flask Slack App

I am currently working on Slack Event API to show the Home tab in the existed Slack App. So, I am struggling to implement app_home_opened from the Slack Event API to the app. The app is developed by Python Flask. And when I tried to show home tab in…
0
votes
1 answer

How to separate Slack blocks into a separate file

I'm working on a slack bot in JS, and using Slack's "block kit" to format the messages. However, quite often I get a function that looks like this: app.command('/workspace-request', async ({ command, ack, respond }) => { await ack(); //posts…
PiedPiper
  • 59
  • 5