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: articles/data-factory/tutorial-control-flow-portal.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ To trigger sending an email from the pipeline, you use [Logic Apps](../logic-app
58
58
### Success email workflow
59
59
Create a Logic App workflow named `CopySuccessEmail`. Define the workflow trigger as `When an HTTP request is received`, and add an action of `Office 365 Outlook – Send an email`.
60
60
61
-
:::image type="content" source="media/tutorial-control-flow-portal/success-email-workflow.png" alt-text="Shows a screenshot of the Success email workflow":::
61
+
:::image type="content" source="media/tutorial-control-flow-portal/success-email-workflow.png" alt-text="Shows a screenshot of the Success email workflow.":::
62
62
63
63
For your request trigger, fill in the `Request Body JSON Schema` with the following JSON:
64
64
@@ -84,11 +84,11 @@ For your request trigger, fill in the `Request Body JSON Schema` with the follow
84
84
85
85
The Request in the Logic App Designer should look like the following image:
86
86
87
-
:::image type="content" source="media/tutorial-control-flow-portal/logic-app-designer-request.png" alt-text="Shows a screenshot of the Logic App designer - request":::
87
+
:::image type="content" source="media/tutorial-control-flow-portal/logic-app-designer-request.png" alt-text="Shows a screenshot of the Logic App designer - request.":::
88
88
89
89
For the **Send Email** action, customize how you wish to format the email, utilizing the properties passed in the request Body JSON schema. Here is an example:
90
90
91
-
:::image type="content" source="media/tutorial-control-flow-portal/send-email-action-2.png" alt-text="Shows a screenshot of the Logic App designer - send email action":::
91
+
:::image type="content" source="media/tutorial-control-flow-portal/send-email-action-2.png" alt-text="Shows a screenshot of the Logic App designer - send email action.":::
92
92
93
93
Save the workflow. Make a note of your HTTP Post request URL for your success email workflow:
Follow the same steps to create another Logic Apps workflow of **CopyFailEmail**. In the request trigger, the `Request Body JSON schema` is the same. Change the format of your email like the `Subject` to tailor toward a failure email. Here is an example:
102
102
103
-
:::image type="content" source="media/tutorial-control-flow-portal/fail-email-workflow-2.png" alt-text="Shows a screenshot of the Logic App designer - fail email workflow":::
103
+
:::image type="content" source="media/tutorial-control-flow-portal/fail-email-workflow-2.png" alt-text="Shows a screenshot of the Logic App designer - fail email workflow.":::
104
104
105
105
Save the workflow. Make a note of your HTTP Post request URL for your failure email workflow:
:::image type="content" source="./media/tutorial-control-flow-portal/create-resource.png" alt-text="Shows a screenshot of the "Create a resource" button in the Azure portal.":::
128
128
129
-
:::image type="content" source="./media/tutorial-control-flow-portal/new-azure-data-factory-menu.png" alt-text="Shows a screenshot of the Data Factory selection in the "New" pane":::
129
+
:::image type="content" source="./media/tutorial-control-flow-portal/new-azure-data-factory-menu.png" alt-text="Shows a screenshot of the Data Factory selection in the "New" pane.":::
130
130
131
131
1. In the **New data factory** page, enter **ADFTutorialDataFactory** for the **name**.
1. After the creation is complete, you see the **Data Factory** page as shown in the image.
151
151
152
-
:::image type="content" source="./media/tutorial-control-flow-portal/data-factory-home-page.png" alt-text="Shows a screenshot of the data factory home page":::
152
+
:::image type="content" source="./media/tutorial-control-flow-portal/data-factory-home-page.png" alt-text="Shows a screenshot of the data factory home page.":::
153
153
1. Click **Open Azure Data Factory Studio** tile to launch the Azure Data Factory user interface (UI) in a separate tab.
154
154
155
155
@@ -171,16 +171,16 @@ In this step, you create a pipeline with one Copy activity and two Web activitie
171
171
-**sinkBlobContainer** – parameter in the pipeline consumed by the sink blob dataset
172
172
-**receiver** – this parameter is used by the two Web activities in the pipeline that send success or failure emails to the receiver whose email address is specified by this parameter.
173
173
174
-
:::image type="content" source="./media/tutorial-control-flow-portal/pipeline-parameters.png" alt-text="Shows a screenshot of the New pipeline menu":::
174
+
:::image type="content" source="./media/tutorial-control-flow-portal/pipeline-parameters.png" alt-text="Shows a screenshot of the New pipeline menu.":::
175
175
1. In the **Activities** toolbox, search for **Copy** and drag-drop the **Copy** activity to the pipeline designer surface.
176
176
177
-
:::image type="content" source="./media/tutorial-control-flow-portal/drag-drop-copy-activity.png" alt-text="Shows a screenshot demonstrating how to drag and drop the copy activity onto the pipeline designer":::
177
+
:::image type="content" source="./media/tutorial-control-flow-portal/drag-drop-copy-activity.png" alt-text="Shows a screenshot demonstrating how to drag and drop the copy activity onto the pipeline designer.":::
178
178
1. Select the **Copy** activity you dragged onto the pipeline designer surface. In the **Properties** window for the **Copy** activity at the bottom, switch to the **Source** tab, and click **+ New**. You create a source dataset for the copy activity in this step.
179
179
180
-
:::image type="content" source="./media/tutorial-control-flow-portal/new-source-dataset-button.png" alt-text="Screenshot that shows how to create a source dataset for teh copy activity.":::
180
+
:::image type="content" source="./media/tutorial-control-flow-portal/new-source-dataset-button.png" alt-text="Screenshot that shows how to create a source dataset for the copy activity.":::
181
181
1. In the **New Dataset** window, select the **Azure** tab at the top, and then choose **Azure Blob Storage**, and select **Continue**.
182
182
183
-
:::image type="content" source="./media/tutorial-control-flow-portal/select-azure-blob-storage.png" alt-text="Shows a screenshot of the select Azure Blob Storage button":::
183
+
:::image type="content" source="./media/tutorial-control-flow-portal/select-azure-blob-storage.png" alt-text="Shows a screenshot of the select Azure Blob Storage button.":::
184
184
185
185
1. In the **Select format** window, choose **DelimitedText** and select **Continue**.
186
186
@@ -192,7 +192,7 @@ In this step, you create a pipeline with one Copy activity and two Web activitie
192
192
193
193
1. You will see the **New linked service** window where you can fill out the required properties for the linked service.
194
194
195
-
:::image type="content" source="./media/tutorial-control-flow-portal/new-linked-service-window.png" alt-text="Shows a screenshot fo the dataset connection window with the new linked service button highlighted":::
195
+
:::image type="content" source="./media/tutorial-control-flow-portal/new-linked-service-window.png" alt-text="Shows a screenshot fo the dataset connection window with the new linked service button highlighted.":::
196
196
197
197
1. In the **New Linked Service** window, complete the following steps:
198
198
@@ -206,11 +206,11 @@ In this step, you create a pipeline with one Copy activity and two Web activitie
206
206
207
207
1. Enter `@pipeline().parameters.sourceBlobContainer` for the folder and `emp.txt` for the file name.
208
208
209
-
:::image type="content" source="./media/tutorial-control-flow-portal/source-dataset-settings.png" alt-text="Shows a screenshot of the source dataset settings":::
209
+
:::image type="content" source="./media/tutorial-control-flow-portal/source-dataset-settings.png" alt-text="Shows a screenshot of the source dataset settings.":::
210
210
211
211
1. Switch back to the **pipeline** tab (or click the pipeline in the treeview on the left), and select the **Copy** activity on the designer. Confirm that your new dataset is selected for **Source Dataset**.
212
212
213
-
:::image type="content" source="./media/tutorial-control-flow-portal/pipeline-source-dataset-selected.png" alt-text="Shows a screenshot of the source dataset":::
213
+
:::image type="content" source="./media/tutorial-control-flow-portal/pipeline-source-dataset-selected.png" alt-text="Shows a screenshot of the source dataset.":::
214
214
215
215
1. In the properties window, switch to the **Sink** tab, and click **+ New** for **Sink Dataset**. You create a sink dataset for the copy activity in this step similar to the way you created the source dataset.
216
216
@@ -222,11 +222,11 @@ In this step, you create a pipeline with one Copy activity and two Web activitie
222
222
223
223
1. On the dataset **Connection** tab, edit the **File path**. Enter `@pipeline().parameters.sinkBlobContainer` for the folder, and `@concat(pipeline().RunId, '.txt')` for the file name. The expression uses the ID of the current pipeline run for the file name. For the supported list of system variables and expressions, see [System variables](control-flow-system-variables.md) and [Expression language](control-flow-expression-language-functions.md).
224
224
225
-
:::image type="content" source="./media/tutorial-control-flow-portal/sink-dataset-settings.png" alt-text="Shows a screenshot of the Sink dataset settings":::
225
+
:::image type="content" source="./media/tutorial-control-flow-portal/sink-dataset-settings.png" alt-text="Shows a screenshot of the Sink dataset settings.":::
226
226
227
227
1. Switch back to the **pipeline** tab at the top. Search for **Web** in the search box, and drag-drop a **Web** activity to the pipeline designer surface. Set the name of the activity to **SendSuccessEmailActivity**. The Web Activity allows a call to any REST endpoint. For more information about the activity, see [Web Activity](control-flow-web-activity.md). This pipeline uses a Web Activity to call the Logic Apps email workflow.
228
228
229
-
:::image type="content" source="./media/tutorial-control-flow-portal/success-web-activity-general.png" alt-text="Shows a screenshot demonstrating how to drag and drop the first Web activity":::
229
+
:::image type="content" source="./media/tutorial-control-flow-portal/success-web-activity-general.png" alt-text="Shows a screenshot demonstrating how to drag and drop the first Web activity.":::
230
230
1. Switch to the **Settings** tab from the **General** tab, and do the following steps:
231
231
1. For **URL**, specify URL for the logic apps workflow that sends the success email.
232
232
1. Select **POST** for **Method**.
@@ -249,13 +249,13 @@ In this step, you create a pipeline with one Copy activity and two Web activitie
249
249
- Pipeline Name – Passing value of `@{pipeline().Pipeline}`. This is also a system variable, allowing you to access the corresponding pipeline name.
250
250
- Receiver – Passing value of "\@pipeline().parameters.receiver"). Accessing the pipeline parameters.
251
251
252
-
:::image type="content" source="./media/tutorial-control-flow-portal/web-activity1-settings.png" alt-text="Shows a screenshot of the settings for the first Web activity":::
252
+
:::image type="content" source="./media/tutorial-control-flow-portal/web-activity1-settings.png" alt-text="Shows a screenshot of the settings for the first Web activity.":::
253
253
1. Connect the **Copy** activity to the **Web** activity by dragging the green checkbox button next to the Copy activity and dropping on the Web activity.
254
254
255
-
:::image type="content" source="./media/tutorial-control-flow-portal/connect-copy-web-activity1.png" alt-text="Shows a screenshot demonstrating how to connect the Copy activity with the first Web activity":::
255
+
:::image type="content" source="./media/tutorial-control-flow-portal/connect-copy-web-activity1.png" alt-text="Shows a screenshot demonstrating how to connect the Copy activity with the first Web activity.":::
256
256
1. Drag-drop another **Web** activity from the Activities toolbox to the pipeline designer surface, and set the **name** to **SendFailureEmailActivity**.
257
257
258
-
:::image type="content" source="./media/tutorial-control-flow-portal/web-activity2-name.png" alt-text="Shows a screenshot of the name of the second Web activity":::
258
+
:::image type="content" source="./media/tutorial-control-flow-portal/web-activity2-name.png" alt-text="Shows a screenshot of the name of the second Web activity.":::
259
259
1. Switch to the **Settings** tab, and do the following steps:
260
260
261
261
1. For **URL**, specify URL for the logic apps workflow that sends the failure email.
@@ -273,7 +273,7 @@ In this step, you create a pipeline with one Copy activity and two Web activitie
273
273
}
274
274
```
275
275
276
-
:::image type="content" source="./media/tutorial-control-flow-portal/web-activity2-settings.png" alt-text="Shows a screenshot of the settings for the second Web activity":::
276
+
:::image type="content" source="./media/tutorial-control-flow-portal/web-activity2-settings.png" alt-text="Shows a screenshot of the settings for the second Web activity.":::
277
277
1. Select the red **X** button on the right side of the **Copy** activity in the pipeline designer and drag and drop it onto the **SendFailureEmailActivity** you just created.
278
278
279
279
:::image type="content" source="./media/tutorial-control-flow-portal/select-copy-failure-link.png" alt-text="Screenshot that shows how to select Error on the Copy activity in the pipeline designer.":::
@@ -288,7 +288,7 @@ In this step, you create a pipeline with one Copy activity and two Web activitie
288
288
## Trigger a pipeline run that succeeds
289
289
1. To **trigger** a pipeline run, click **Trigger** on the toolbar, and click **Trigger Now**.
290
290
291
-
:::image type="content" source="./media/tutorial-control-flow-portal/trigger-now-menu.png" alt-text="Shows a screenshot of the Trigger Now button":::
291
+
:::image type="content" source="./media/tutorial-control-flow-portal/trigger-now-menu.png" alt-text="Shows a screenshot of the Trigger Now button.":::
292
292
1. In the **Pipeline Run** window, do the following steps:
293
293
294
294
1. Enter **adftutorial/adfv2branch/input** for the **sourceBlobContainer** parameter.
0 commit comments