Create a Demo Solution
This tutorial will talk you through setting up a super simple solution with Slack.
For this you will need admin access to a Slack workspace. You can sign up for free at https://slack.com/get-started
What we will be achieving here is:
- The workflow will be triggered by a new channel being created in Slack
- The trigger will result in a message being sent to your email address, notifying you that a new Slack channel has been created
- Configuration options (email subject, message content) will be made available to the end user who will be setting it up for their own use
- Once the solution is configured it will be available to use in our Demo app, where you can setup a test end user to configure their own version of the solution
In your Tray partner dashboard, create a new workflow and choose the Slack trigger:
In the step editor, you will then need to create a 'new authentication' to log Tray into your Slack account:
Set the Operation to 'On Slack event' and the Event to 'Channel created':
Add a 'Send Email' helper as the next step in the workflow. Then set yourself as the recipient and add
$.config.slack-messageto the Subject and Content boxes (make sure you change the field type to JSONPATH):
At this point, please take the time to read the Note on Config Data for some important information on managing shared Config Data at a Project level
To set the slack message Config Data, click on the settings wheel in the top left of the screen, next to the name of the workflow:
Enter some default values for the above slack-subject and slack-message variables. These can then be used in your workflow (as in step 4), and can be made available for end users to configure for their own needs when they are using the Configuration Wizard.
Return to your dashboard, click on 'Create New Project' and name it something like 'Slack new channel notifications'. In the 'Worklows' step add the workflow you have just created:
In the final screen you will see the Config Data fields you entered above.
From your Projects page you can now click on the menu for that project and choose 'Make Solution':
Call it something like 'Slack new channel notifications'. Then you can use the drag'n'drop interface to configure and preview the Configuration Wizard which the End User will see when they are activating the Solution as their own Solution Instance:
Finally, from your Solutions page, publish the solution:
Your solution will now be available for registered users in the demo app to activate it as a Solution Instance, configured for their own use.