-
Notifications
You must be signed in to change notification settings - Fork 6
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
Injecting correct team_id
into function context
#65
Comments
@ChrisMcKee for your particular case, is the app installed to a specific team within the org, or to all teams within the org? The details can be quite tricky here so this isn't just a matter of 'expose a missing property!' For example, in a channel shared across multiple workspaces (think Slack Connect), what should the The example payload you provide is a |
@filmaj When I deployed it via the CLI I chose team level. I usually use the slack-go library so what you say about the actions metadata being related to the user makes total sense (really miss step-by-step debugging in this). All of this is only an issue at an enterprise level. Luckily the place I work is on Business so it works fine as is for what I need at the moment. |
@filmaj Do you have an update on when this can be fixed? I need to utilize team_id as well. I need to utilize team_id in my app so that I can invoke an API on my platform's backend. I am looking to map the team_id to my internal canonical org_id. |
@jaywalker1981 this issue is not so simple as it depends on the context of where your function is executed. The Can you share more information on the context for your function, and, if it is under your control, the workflow containing the function? There are ways to get relevant team ID context, such as calling the |
My sandbox workspace config ends up like
But the app-install response correctly states
The
BaseRuntimeFunctionContext
team_id
is the same as the enterprise_id instead of being set to the team_id. Having to get around it usingteam_id: env["TEAM_ID"] || team_id || undefined,
Originally posted by @ChrisMcKee in slackapi/deno-slack-sdk#267 (comment)
The text was updated successfully, but these errors were encountered: