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
+22-12Lines changed: 22 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,10 @@ The Data Mapper extension currently works only with schemas in flat folder-struc
112
112
113
113
Alternatively, you can also add your source and target schema files locally to your logic app project in the **Artifacts****Schemas** folder, so that they appear in Visual Studio Code. In this case, you can specify your source and target schema in the Data Mapper tool on the **Configure** pane by selecting **Select existing**, rather than **Add new**.
114
114
115
+
When you're done, your map looks similar to the following example:
116
+
117
+

118
+
115
119
The following table describes the possible data types that might appear in a schema:
116
120
117
121
| Symbol | Type | More info |
@@ -136,12 +140,14 @@ To move around the map, you have the following options:
136
140
137
141
- To pan around, drag your pointer around the map surface. Or, press and hold the mouse wheel, while you move the mouse or trackball.
138
142
139
-
- In the lower left map corner, on the navigation bar, select the option you want:
143
+
- After you move one level down into the map, in the map's lower left corner, a navigation bar appears where you can select from the following options:
|**Zoom in**| On the map surface, double select. <br>-or- <br>Scroll up with the mouse wheel. |
144
149
|**Zoom out**| On the map surface, press SHIFT + double select. <br>-or- <br>Scroll down with the mouse wheel. |
150
+
|**Zoom in**| On the map surface, double select. <br>-or- <br>Scroll up with the mouse wheel. |
145
151
|**Zoom to fit**| None |
146
152
|**Show (Hide) mini-map**| None |
147
153
@@ -151,17 +157,17 @@ To move around the map, you have the following options:
151
157
152
158
## Select target and source elements to map
153
159
154
-
1. On the map surface, from the target schema's data element list, select the target element that you want to map. If that element is a child of a parent element, find and expand the parent first.
160
+
1. On the map surface, starting from the right side, in the target schema area, select the target element that you want to map. If the element you want is a child of a parent element, find and expand the parent first.
155
161
156
-
1.In the source schema area, select **Select element**.
162
+
1.Now, on the left side, from the source schema area, select **Select element**.
157
163
158
-
1.From the **Source schema** window that appears, select one or more source elements to show on the map.
164
+
1.In the **Source schema** window that appears, select one or more source elements to show on the map.
159
165
160
-
- To include the parent and direct children, open the parent's shortcut menu, and select **Add children**.
166
+
- To include a parent and direct children, open the parent's shortcut menu, and select **Add children**.
161
167
162
-
- To include a parent and all the children of a parent, including any subsequent parents, open the top-level parent's shortcut menu, and select **Add children (recursive)**.
168
+
- To include a parent and all the children for that parent, including any sub-parents, open the top-level parent's shortcut menu, and select **Add children (recursive)**.
163
169
164
-
1. When you're done, close the source schema window. You can always add more source elements later. On the map, in the upper left corner, select **Show source schema** (node tree).
170
+
1. When you're done, you can close the source schema window. You can always add more source elements later. On the map, in the upper left corner, select **Show source schema** ().
165
171
166
172
<aname="create-direct-mapping"></a>
167
173
@@ -225,7 +231,7 @@ The example in this section transforms the source element type from String type
225
231
226
232
1. If you haven't already, on the map, [select the target elements and then the source elements that you want to map](#select-elements).
227
233
228
-
1. In the map's upper left corner, select **Show functions**.
234
+
1. In the map's upper left corner, select **Show functions** ().
229
235
230
236

231
237
@@ -287,7 +293,7 @@ The example in this section concatenates multiple source element types so that y
287
293
288
294
1. If you haven't already, on the map, [select the target elements and then the source elements that you want to map](#select-elements).
289
295
290
-
1. In the map's upper left corner, select **Show functions**.
296
+
1. In the map's upper left corner, select **Show functions** ().
291
297
292
298

293
299
@@ -347,6 +353,10 @@ If your source and target schemas include arrays, you can create a loop mapping
347
353
348
354

349
355
356
+
1. Continue mapping the other array elements.
357
+
358
+

359
+
350
360
<aname="add-condition"></a>
351
361
352
362
## Set up a condition and task to perform between elements
@@ -355,7 +365,7 @@ To add a mapping relationship that evaluates a condition and performs a task whe
355
365
356
366
The example in this section calculates a discount to apply when the purchase quantity exceeds 20 items by using the following functions:
357
367
358
-
-**Greater**: Check whether item quantity is greater than 20
368
+
-**Greater**: Check whether item quantity is greater than 20.
359
369
-**If**: Check whether the **Greater** function returns true.
360
370
-**Multiply**: Calculate the discount by multiplying the item price by 10% and the item quantity.
361
371
@@ -367,7 +377,7 @@ The example in this section calculates a discount to apply when the purchase qua
367
377
368
378

369
379
370
-
1. In the map's upper left corner, select **Show functions**.
380
+
1. In the map's upper left corner, select **Show functions** ().
371
381
372
382
1. Add the following functions to the map: **Greater**, **If**, and **Multiply**
0 commit comments