-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unable to pass team_id
to built-in Slack function Schema.slack.functions.CreateChannel
#267
Comments
Hello, indeed this is a problem in Enterprise workspaces. I will escalate internally to see how we can address this. My intuition is that triggers should probably include |
team_id
to built-in Slack function Schema.slack.functions.CreateChannel
As a temporary workaround, you could create a custom function that passes |
Interestingly this issue does not exist when creating a workflow using Workflow Builder, I believe because the form for the Create Channel step in WFB detects that the executing context is within a grid/enterprise workspace, and thus requires workflow creators to select a specific workspace within the enterprise. Of course that kind of guidance is not provided in the coded experience. |
For the record, I was using the workaround you mentioned #267 (comment), which works. |
An update here: the team is working on addressing the bug with |
I am new to Slack API/workflow apps and am working through the same issue described here when testing in my developer sandbox (enterprise grid). I assume this issue would not exist if I were running this in a "business" tier sub?
I might be missing something obvious, but when I declare Any insight would be appreciated |
@philblanchard is your app installed to the org, or to a workspace within the org? That might explain the difference in the first letter in the In either case, you receiving the enterprise ID as |
@filmaj -- I would suspect it is only installed to a workspace within the org, as that is the option I've selected through the Slack CLI. Another thing to note is that when I log the During the I guess also FWIW if you do a |
Yes, I did some further testing here myself. I believe there is a problem with how the backend sends the team ID (or rather: how it does not send the team ID) for certain events to workflow apps. The same Not sure what execution context / event you are seeing your issue in, but in case it is from a block action or view event, you can find the relevant team ID under |
Is there any timeframe on when they'll fix the api so it starts to either pass it, or at the very least so the CLI starts to set the correct team-id My sandbox workspace config ends up like
But the app-install response correctly states
The |
- updated some property titles - create-channel built in now accepts an optional team id (fixes #267) - added new Add Bookmark builtin - openform now accepts an on_submit_function_config input
team_id
type, updates to built-ins, updated builtin function generation script instructions
#327
I've moved the discussion around how to get a reference to a correct This way we can keep this issue for exposing |
…neration script instructions (#327) * Alphabetize slack types, add team ID type * Built in function updates: - updated some property titles - create-channel built in now accepts an optional team id (related to #267) - added new Add Bookmark builtin * model is_hidden on builtin function parameters. * remove deprecated deno.jsonc properties. * dont warn on hidden params, instead filter them out, but, have a special list of pre-approved hidden params we publicize anyways to account for exposing it previously
This issue is resolved now that |
Question
I'm trying to use
Schema.slack.functions.CreateChannel
in a new Deno workflow, and I want to know how I should pass the team_id parameter. It's something similar to how it's done with the Slack API client.API client
Slack function CreateChannel as workflow steps does not accept team_id
Context
slack run
works as expected, but when trying to create a channel, my workflow gets stuck. I believe it's due to restricted workspace permissions. I'm working on a "development" workspace, where I'm admin, so I want to make sure the function above creates a channel in the correct workspace.Environment
The text was updated successfully, but these errors were encountered: