You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/english/guides/steps-from-apps.md
+3-9Lines changed: 3 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,6 @@ A step is made up of three distinct user events:
22
22
23
23
All three events must be handled for a workflow step to function.
24
24
25
-
Read more about steps from apps in the [API documentation](/legacy/legacy-steps-from-apps/).
26
-
27
25
### Slack app configuration
28
26
29
27
To enable Steps from Apps, visit the [Slack app settings page](http://api.slack.com/apps), choose the app you're working on, and go to **Features** > **Workflow Steps** on the left pane. There are two things to do on the page.
@@ -64,14 +62,12 @@ app.step(step);
64
62
---
65
63
## Adding or editing Steps from Apps
66
64
67
-
When a builder adds (or later edits) your step in their workflow, your app will receive a [`workflow_step_edit`](/legacy/legacy-steps-from-apps/legacy-steps-from-apps-workflow_step_edit-payload) event. The `edit` callback in your `WorkflowStep` configuration will be run when this event is received.
65
+
When a builder adds (or later edits) your step in their workflow, your app will receive a `workflow_step_edit` event. The `edit` callback in your `WorkflowStep` configuration will be run when this event is received.
68
66
69
-
Whether a builder is adding or editing a step, you need to send them a [Step from App settings modal](/legacy/legacy-steps-from-apps/legacy-steps-from-apps-configuration-view-object). This modal is where step-specific settings are chosen, and it has more restrictions than typical modals—most notably, it cannot include `title`, `submit`, or `close` properties. By default, the configuration modal's `callback_id` will be the same as the workflow step.
67
+
Whether a builder is adding or editing a step, you need to send them a Step from App settings modal. This modal is where step-specific settings are chosen, and it has more restrictions than typical modals—most notably, it cannot include `title`, `submit`, or `close` properties. By default, the configuration modal's `callback_id` will be the same as the workflow step.
70
68
71
69
Within the `edit` callback, the `configure()` utility can be used to easily open your step's configuration modal by passing in an object with your view's `blocks`. To disable saving the configuration before certain conditions are met, pass in `submit_disabled` with a value of `true`.
72
70
73
-
To learn more about opening configuration modals, [read the documentation](/legacy/legacy-steps-from-apps/).
@@ -119,8 +115,6 @@ Within the `save` callback, the `update()` method can be used to save the builde
119
115
*`stepName` overrides the default step name
120
116
*`stepImageUrl` overrides the default step image
121
117
122
-
To learn more about how to structure these parameters, [read the documentation](/legacy/legacy-steps-from-apps/).
123
-
124
118
```java
125
119
importjava.util.*;
126
120
importcom.slack.api.model.workflow.*;
@@ -156,7 +150,7 @@ app.step(step);
156
150
---
157
151
## Executing Steps from Apps
158
152
159
-
When your workflow step is executed by an end user, your app will receive a [`workflow_step_execute`](/reference/events/workflow_step_execute) event. The `execute` callback in your `WorkflowStep` configuration will be run when this event is received.
153
+
When your workflow step is executed by an end user, your app will receive a `workflow_step_execute` event. The `execute` callback in your `WorkflowStep` configuration will be run when this event is received.
160
154
161
155
Using the `inputs` from the `save` callback, this is where you can make third-party API calls, save information to a database, update the user's Home tab, or decide the outputs that will be available to subsequent steps from apps by mapping values to the `outputs` object.
0 commit comments