Skip to content

Commit 272498e

Browse files
author
ecfan
committed
Remove content to simplify content
1 parent eb5552c commit 272498e

22 files changed

Lines changed: 8 additions & 213 deletions

articles/connectors/connectors-create-api-db2.md

Lines changed: 8 additions & 213 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,16 @@ For more information about the connector and these actions, see [DB2 connector](
6464

6565
- To access on-premises DB2 databases, you need to [install and set up the on-premises data gateway](../logic-apps/logic-apps-gateway-connection.md).
6666

67-
<a name="add-db2-action"></a>
67+
<a name="add-action"></a>
6868

6969
## Add a DB2 action
7070

7171
The following steps show how to add a DB2 action, for example, **Get tables**, to your workfklow.
7272

73+
> [!NOTE]
74+
>
75+
> The steps to add any other DB2 action are similar, except for the action's parameters and values that you provide.
76+
7377
1. In the [Azure portal](https://portal.azure.com), open your logic app resource and workflow in the designer.
7478

7579
1. Follow the [general steps](../logic-apps/add-trigger-action-workflow.md#add-action) to add the **DB2** action named **Get tables**.
@@ -152,224 +156,15 @@ To manually run your workflow, on the designer toolbar, from the **Run** list, s
152156

153157
1. On the run details page, review the status for each step in your workflow. To view the inputs and outputs for each step, select that step, for example:
154158

155-
:::image type="content" source="./media/connectors-create-api-db2/expand-action-step.png" alt-text="Screenshot that shows how to expand the Get tables action.":::
159+
:::image type="content" source="./media/connectors-create-api-db2/get-tables-run-history.png" alt-text="Screenshot shows the inputs and outputs for the Get tables action.":::
156160

157161
1. To view the inputs in JSON, select **Show raw inputs**.
158162

159163
1. To view the outputs in JSON, select **Show raw outputs**.
160164

161-
The outputs include a list of tables.
162-
163-
:::image type="content" source="./media/connectors-create-api-db2/db2-connector-get-tables-outputs.png" alt-text="Screenshot that shows code that specifies the output tables.":::
164-
165-
## Get row
166-
167-
To fetch one record in a DB2 database table, use the **Get row** action in your logic app. This action runs a DB2 `SELECT WHERE` statement, for example, `SELECT FROM AREA WHERE AREAID = '99999'`.
168-
169-
1. If you don't use DB2 actions in your logic app, review the steps in [Add DB2 action - Get tables](#add-db2-action), but add the **Get row** action instead, and then return here to continue.
170-
171-
After you add the **Get row** action, here's how your example logic app appears:
172-
173-
:::image type="content" source="./media/connectors-create-api-db2/db2-get-row-action.png" alt-text="Screenshot shows the Logic Apps Designer containing the Get row action.":::
174-
175-
1. Specify values for all the required properties (*). After you select a table, the action shows the relevant properties that are specific to records in that table.
176-
177-
| Property | Required | Description |
178-
|----------|----------|-------------|
179-
| **Table name** | Yes | The table that has the record you want, such as "AREA" in this example |
180-
| **Area ID** | Yes | The ID for the record you want, such as "99999" in this example |
181-
182-
:::image type="content" source="./media/connectors-create-api-db2/db2-get-row-action-select-table.png" alt-text="Screenshot that shows the Get row action with the opened Table name list and the AREA value selected.":::
183-
184-
1. When you're done, on the designer toolbar, select **Save**.
185-
186-
### View output row
187-
188-
To run your logic app manually, on the designer toolbar, choose **Run**. After your logic app finishes running, you can view the output from the run.
189-
190-
1. On your logic app menu, select **Overview**.
191-
192-
1. Under **Summary**, in the **Runs history** section, select the most recent run, which is the first item in the list.
193-
194-
1. Under **Logic app run**, review the status, inputs, and outputs for each step in your logic app. Expand the **Get row** action.
195-
196-
1. To view the inputs, select **Show raw inputs**.
197-
198-
1. To view the outputs, select **Show raw outputs**.
199-
200-
The outputs include your specified row.
201-
202-
:::image type="content" source="./media/connectors-create-api-db2/db2-connector-get-row-outputs.png" alt-text="Screenshot shows the Outputs screen with the outputs specified in the body area.":::
203-
204-
## Get rows
205-
206-
To fetch all records in a DB2 database table, use the **Get rows** action in your logic app. This action runs a DB2 `SELECT` statement, for example, `SELECT * FROM AREA`.
207-
208-
1. If you don't use DB2 actions in your logic app, review the steps in the [Add DB2 action - Get tables](#add-db2-action) section, but add the **Get rows** action instead, and then return here to continue.
209-
210-
After you add the **Get rows** action, here's how your example logic app appears:
211-
212-
:::image type="content" source="./media/connectors-create-api-db2/db2-get-rows-action.png" alt-text="Screenshot shows the Logic Apps Designer, which contains the Get rows action.":::
213-
214-
1. Open the **Table name** list, and then select the table you want, which is **AREA** in this example:
215-
216-
:::image type="content" source="./media/connectors-create-api-db2/db2-get-rows-action-select-table.png" alt-text="Screenshot that shows the Get rows action with the AREA value selected in the Table name list.":::
217-
218-
1. To specify a filter or query for results, select **Show advanced options**.
219-
220-
1. When you're done, on the designer toolbar, select **Save**.
221-
222-
### View output rows
223-
224-
To run your logic app manually, on the designer toolbar, select **Run**. After your logic app finishes running, you can view the output from the run.
225-
226-
1. On your logic app menu, select **Overview**.
227-
228-
1. Under **Summary**, in the **Runs history** section, select the most recent run, which is the first item in the list.
229-
230-
1. Under **Logic app run**, review the status, inputs, and outputs for each step in your logic app. Expand the **Get rows** action.
231-
232-
1. To view the inputs, select **Show raw inputs**.
233-
234-
1. To view the outputs, select **Show raw outputs**.
235-
236-
The outputs include all the records in your specified table.
237-
238-
:::image type="content" source="./media/connectors-create-api-db2/db2-connector-get-rows-outputs.png" alt-text="Screenshot shows the Output area with the records specified in the body area.":::
239-
240-
## Insert row
241-
242-
To add a single record to a DB2 database table, use the **Insert row** action in your logic app. This action runs a DB2 `INSERT` statement, for example, `INSERT INTO AREA (AREAID, AREADESC, REGIONID) VALUES ('99999', 'Area 99999', 102)`.
243-
244-
1. If you don't use DB2 actions in your logic app, review the steps in the [Add DB2 action - Get tables](#add-db2-action) section, but add the **Insert row** action instead, and then return here to continue.
245-
246-
After you add the **Insert row** action, here's how your example logic app appears:
247-
248-
:::image type="content" source="./media/connectors-create-api-db2/db2-insert-row-action.png" alt-text="Screenshot shows the Logic Apps Designer with the Insert row action.":::
249-
250-
1. Specify values for all the required properties (*). After you select a table, the action shows the relevant properties that are specific to records in that table.
251-
252-
For this example, here are the properties:
253-
254-
| Property | Required | Description |
255-
|----------|----------|-------------|
256-
| **Table name** | Yes | The table where to add the record, such as *AREA* |
257-
| **Area ID** | Yes | The ID for the area to add, such as *99999* |
258-
| **Area description** | Yes | The description for the area to add, such as *Area 99999* |
259-
| **Region ID** | Yes | The ID for the region to add, such as *102* |
260-
261-
For example:
262-
263-
:::image type="content" source="./media/connectors-create-api-db2/db2-insert-row-action-select-table.png" alt-text="Screenshot that shows the Logic Apps Designer with the Insert row action and example property values.":::
264-
265-
1. When you're done, on the designer toolbar, select **Save**.
266-
267-
### View insert row outputs
268-
269-
To run your logic app manually, on the designer toolbar, select **Run**. After your logic app finishes running, you can view the output from the run.
270-
271-
1. On your logic app menu, select **Overview**.
272-
273-
1. Under **Summary**, in the **Runs history** section, select the most recent run, which is the first item in the list.
274-
275-
1. Under **Logic app run**, review the status, inputs, and outputs for each step in your logic app. Expand the **Insert row** action.
276-
277-
1. To view the inputs, select **Show raw inputs**.
278-
279-
1. To view the outputs, select **Show raw outputs**.
280-
281-
The outputs include the record you added to your specified table.
282-
283-
:::image type="content" source="./media/connectors-create-api-db2/db2-connector-insert-row-outputs.png" alt-text="Screenshot that shows the Outputs area with the specified record added.":::
284-
285-
## Update row
286-
287-
To update a single record in a DB2 database table, use the **Update row** action in your logic app. This action runs a DB2 `UPDATE` statement, for example, `UPDATE AREA SET AREAID = '99999', AREADESC = 'Updated 99999', REGIONID = 102)`.
288-
289-
1. If you don't use DB2 actions in your logic app, review the steps in the [Add DB2 action - Get tables](#add-db2-action) section, but add the **Update row** action instead, and then return here to continue.
290-
291-
After you add the **Update row** action, here's how your example logic app appears:
292-
293-
:::image type="content" source="./media/connectors-create-api-db2/db2-update-row-action.png" alt-text="Screenshot that shows the Logic App Designer with an Update row action.":::
294-
295-
1. Specify values for all the required properties (*). After you select a table, the action shows the relevant properties that are specific to records in that table.
296-
297-
For this example, here are the properties:
298-
299-
| Property | Required | Description |
300-
|----------|----------|-------------|
301-
| **Table name** | Yes | The table where to update the record, such as *AREA* |
302-
| **Row ID** | Yes | The ID for the record to update, such as *99999* |
303-
| **Area ID** | Yes | The new area ID, such as *99999* |
304-
| **Area description** | Yes | The new area description, such as *Updated 99999* |
305-
| **Region ID** | Yes | The new region ID, such as *102* |
306-
307-
For example:
308-
309-
:::image type="content" source="./media/connectors-create-api-db2/db2-update-row-action-select-table.png" alt-text="Screenshot that shows the Logic Apps Designer with the Update row action where you select a table.":::
310-
311-
1. When you're done, on the designer toolbar, choose **Save**.
312-
313-
### View update row outputs
314-
315-
To run your logic app manually, on the designer toolbar, choose **Run**. After your logic app finishes running, you can view the output from the run.
316-
317-
1. On your logic app menu, select **Overview**.
318-
319-
1. Under **Summary**, in the **Runs history** section, select the most recent run, which is the first item in the list.
320-
321-
1. Under **Logic app run**, review the status, inputs, and outputs for each step in your logic app. Expand the **Update row** action.
322-
323-
1. To view the inputs, select **Show raw inputs**.
324-
325-
1. To view the outputs, select **Show raw outputs**.
326-
327-
The outputs include the record you updated in your specified table.
328-
329-
:::image type="content" source="./media/connectors-create-api-db2/db2-connector-update-row-outputs.png" alt-text="Screenshot that shows the Outputs area with the record you updated.":::
330-
331-
## Delete row
332-
333-
To delete a single record from a DB2 database table, use the **Delete row** action in your logic app. This action runs a DB2 `DELETE` statement, for example, `DELETE FROM AREA WHERE AREAID = '99999'`.
334-
335-
1. If you don't use DB2 actions in your logic app, review the steps in the [Add DB2 action - Get tables](#add-db2-action) section, but add the **Delete row** action instead, and then return here to continue.
336-
337-
After you add the **Delete row** action, here's how your example logic app appears:
338-
339-
:::image type="content" source="./media/connectors-create-api-db2/db2-delete-row-action.png" alt-text="Screenshot that shows the Logic Apps Designer with the Delete row action.":::
340-
341-
1. Specify values for all the required properties (*). After you select a table, the action shows the relevant properties that are specific to records in that table.
342-
343-
For this example, here are the properties:
344-
345-
| Property | Required | Description |
346-
|----------|----------|-------------|
347-
| **Table name** | Yes | The table where to delete the record, such as *AREA* |
348-
| **Row ID** | Yes | The ID for the record to delete, such as *99999* |
349-
350-
For example:
351-
352-
:::image type="content" source="./media/connectors-create-api-db2/db2-delete-row-action-select-table.png" alt-text="Screenshot that shows the Logic Apps Designer with the Delete row action where you select a table to delete.":::
353-
354-
1. When you're done, on the designer toolbar, choose **Save**.
355-
356-
### View delete row outputs
357-
358-
To run your logic app manually, on the designer toolbar, choose **Run**. After your logic app finishes running, you can view the output from the run.
359-
360-
1. On your logic app menu, select **Overview**.
361-
362-
1. Under **Summary**, in the **Runs history** section, select the most recent run, which is the first item in the list.
363-
364-
1. Under **Logic app run**, review the status, inputs, and outputs for each step in your logic app. Expand the **Delete row** action.
365-
366-
1. To view the inputs, select **Show raw inputs**.
367-
368-
1. To view the outputs, select **Show raw outputs**.
369-
370-
The outputs no longer include the record you deleted from your specified table.
165+
The outputs include a list of tables, for example:
371166

372-
:::image type="content" source="./media/connectors-create-api-db2/db2-connector-delete-row-outputs.png" alt-text="Screenshot shows the Output area, which no longer includes the deleted row.":::
167+
:::image type="content" source="./media/connectors-create-api-db2/get-tables-outputs.png" alt-text="Screenshot shows the output from the Get tables action.":::
373168

374169
## Related content
375170

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)