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/logic-apps/create-maps-data-transformation-visual-studio-code.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ To specify a straightforward transformation between elements that have the same
134
134
135
135
1. On the mapper surface, in the **Source** pane, find the source element that you want to map.
136
136
137
-
- By default, parent elements are automatically expanded to show their children. You can't collapse parent elements.
137
+
- By default, parent elements are automatically expanded to show their children.
138
138
139
139
- This example starts mapping from the source element, but you can choose to start mapping from the target element.
140
140
@@ -312,8 +312,6 @@ In the following example, when the purchase quantity exceeds 20 items, the mappi
312
312
|**Comparison**|**If**| Check whether the **Greater** function returns true. |
313
313
|**Math**|**Multiply**| Calculate the discount by multiplying the item price by 10% and the item quantity. |
314
314
315
-
1. To view what happens in code while you create the mapping, in the mapper's upper right corner, select **View code**.
316
-
317
315
1. In the **Source** and **Destination** panes, find the elements to map in your scenario.
318
316
319
317
This example uses the following elements:
@@ -333,12 +331,14 @@ In the following example, when the purchase quantity exceeds 20 items, the mappi
333
331
334
332
:::image type="content" source="media/create-maps-data-transformation-visual-studio-code/condition-example-functions.png" alt-text="Screenshot shows mapper surface, data elements, and functions for example condition scenario.":::
335
333
336
-
1. To create the mappings, connect the source elements, functions, and target elements as your scenario requires.
334
+
1. To view what happens in code while you create the mappings, in the mapper's upper right corner, select **View code**.
335
+
336
+
1. Connect the source elements, functions, and target elements in the specific order as your scenario requires.
337
337
338
338
This example connects the following items in the specified order to correctly create the mappings:
339
339
340
-
|Point 1 | Point 2|
341
-
|---------|---------|
340
+
|Start | End|
341
+
|-------|-----|
342
342
|**ItemPrice** source element |**ItemPrice** target element |
343
343
|**ItemQuantity** source element |**Greater** function's input on the shape's left edge. This input provides the data for the **Value 1** field in the function details. |
344
344
|**Greater** function's output on the shape's right edge |**If** function's input on the shape's left edge. This input provides the data for the **Condition** field in the function details. |
@@ -356,15 +356,15 @@ In the following example, when the purchase quantity exceeds 20 items, the mappi
356
356
|----------|-----------------------|
357
357
|**Greater**| - **Value 1**: **ItemQuantity** source element <br>- **Value 2**: **20** as a custom value |
358
358
|**Multiply**| - **Multiplicand 1**: **ItemPrice** source element <br>- **Multiplicand 2**: **.10** as a custom value |
The **Code** pane shows the mapping that you created:
366
366
367
-
:::image type="content" source="media/create-maps-data-transformation-visual-studio-code/condition-example-code-view.png" alt-text="Screenshot shows Code pane with conditional mapping between source and target elements using the functions, Greater, If, and Multiply.":::
367
+
:::image type="content" source="media/create-maps-data-transformation-visual-studio-code/condition-example-code-view.png" alt-text="Screenshot shows Code pane with conditional mapping between source and target elements using the functions, Greater, Multiply, and If.":::
0 commit comments