slackapi / bolt-js

A framework to build Slack apps using JavaScript
https://slack.dev/bolt-js
MIT License
2.73k stars 390 forks source link

Select menu of external data source - Max number - Problem #2131

Closed patrykcodeless closed 1 month ago

patrykcodeless commented 2 months ago

Hi,

I am using N8N for Slack automation. I am currently creating an application that needs to have a selection of a large amount of data about 150-200 items in the select menu. According to the documentation, I have implemented an external data source.

Well, and everything would be fine if not for some problems :D

I am test generating myself the JSON needed for external data.

return [ { json: { "options": [ ...Array.from({ length: 10 }, (_, i) => ({ "text": { "type": "plain_text", "text":Test ${i + 1} }, "value":${i + 1} })) ] } } ];

Well, and when the length of the array is 14 or less everything works fine. When the length of the array is 15 or more I get the “Nothing could be found” command.

At first I thought the problem was on the N8N side, but the whole thing there takes not a whole 0.5 seconds.

Where should I look for the problem?

I'm sure the JSON is correct because with less it works The configuration on the slack API side is correct, because also everything works as there are less items

Where should I look for the problem? Does this menu form have any limitations etc?

image image
patrykcodeless commented 2 months ago

Problem is N8N

filmaj commented 2 months ago

Not sure what N8N is, but select menus support a max of 100 options, or if you use option groups, they support up to 100 groups of 100 options each (for a total of 10k max).

It sounds like you identified the problem as being from N8N. In that case, please close the issue if this is no longer relevant. Thanks!

patrykcodeless commented 2 months ago

Not sure what N8N is, but select menus support a max of 100 options, or if you use option groups, they support up to 100 groups of 100 options each (for a total of 10k max).

It sounds like you identified the problem as being from N8N. In that case, please close the issue if this is no longer relevant. Thanks!

The external data limit is also 100?

filmaj commented 2 months ago

@patrykcodeless yes, also 100.

github-actions[bot] commented 1 month ago

👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

github-actions[bot] commented 1 month ago

As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.