[英]Is it possible to have multiple external select menus that contain different data in slack-api?
I am trying to add multiple select menus that contain different external data in both menus.我正在尝试在两个菜单中添加多个包含不同外部数据的 select 菜单。 But it seems you can only add one endpoint to 'Options load URL' under 'Select Menus'.
但似乎您只能在“选择菜单”下的“选项加载 URL”中添加一个端点。
Is it possible to add multiple external select menus?是否可以添加多个外部 select 菜单? I have been referring to https://api.slack.com/reference/block-kit/block-elements#external_select
我一直在参考https://api.slack.com/reference/block-kit/block-elements#external_select
The external select can only currently reference a single endpoint, however you can use multiple external selects in an app.外部 select 当前只能引用单个端点,但是您可以在应用程序中使用多个外部选择。 Your endpoint will need to be able to disambiguate between which select it is and then respond with the appropriate data.
您的端点需要能够区分它是哪个 select,然后使用适当的数据进行响应。
If you have one select for City, for example, and a second one for State, your endpoint might look for the action_id
to know whether to query for city or state value.例如,如果您有一个 select 用于 City,另一个用于 State,您的端点可能会查找
action_id
以了解是查询 city 还是 Z9ED39E2EA931586B6A985A6942EF57 值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.