0

I created a slack app with distribution (multiple clients) and I subscribe to events several events like a message posted in a channel.

Beside the team_id field for identifying the client team - is there an ability to put my own key for a client?

Thank you.

Erik Kalkoken
  • 30,467
  • 8
  • 79
  • 114
Nofar103
  • 127
  • 1
  • 12

1 Answers1

1

No, Sack does not store any custom data for you. Its your job as an app developer to store all team related information for your app and link it to the Slack team_id. This is usually done with a database.

You can however include custom IDs with Slack requests, e.g. in the response you get from an interactive message. See this answer for more details on how this works.

Erik Kalkoken
  • 30,467
  • 8
  • 79
  • 114
  • Thank you. If I understand your answer right in the other thread - it still doesn't allow me to add some values/field/tokens to the incoming events, right? Only request&response in interactive messages. – Nofar103 Sep 25 '17 at 11:15
  • Yes, that is correct. You can of course add some GET parameters in the event URL, but those would be constant for your app, which I understand is not what you are looking for. – Erik Kalkoken Sep 25 '17 at 11:19
  • Yes, I'm looking for unique parameter per client (workspace/team). But - where can I find the option to add some GET parameters to the event URL? – Nofar103 Sep 25 '17 at 11:36
  • Simply by adding them the the Request URL you configure for your app under "Event Subscription". e.g. `https://www.example.com/app/event.php?key1=value1;key2=value2` But as I said those would be constant for you app and all teams, so it does not really solve your problem as I understand. – Erik Kalkoken Sep 25 '17 at 12:07
  • Yes, you are right. It does not solve my problem. Thank you for your reply's. – Nofar103 Sep 25 '17 at 12:15