I have been building a dashboard in retool to send a message to multiple selected users, but since slack api (https://slack.com/api/chat.postMessage) used to send message to a single user.
I have tried to trigger the API through JSQuery as mentioned below:
async function slackTrigger(array) {
for (const value of array) {
await send_slack_message.trigger({
additionalScope: {
channel: value
},...
But encountered with this error:
"ok": false,
"error": "invalid_arguments",
"warning": "missing_charset",
"response_metadata": {
"messages": [
"[ERROR] missing required field: channel"
],
"warnings": [
"missing_charset"
]
}
}
New contributor
Gowtham Shetty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.