Skip to content

Commit ee10ee9

Browse files
committed
Art tweaks
1 parent 10845f9 commit ee10ee9

17 files changed

+22
-12
lines changed

articles/logic-apps/create-maps-data-transformation-visual-studio-code.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ The Data Mapper extension currently works only with schemas in flat folder-struc
112112

113113
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**.
114114

115+
When you're done, your map looks similar to the following example:
116+
117+
![Screenshot showing the Data Mapper open and data map with sample source and target schemas.](media/create-maps-data-transformation-visual-studio-code/high-level-schema-example.png)
118+
115119
The following table describes the possible data types that might appear in a schema:
116120

117121
| Symbol | Type | More info |
@@ -136,12 +140,14 @@ To move around the map, you have the following options:
136140

137141
- To pan around, drag your pointer around the map surface. Or, press and hold the mouse wheel, while you move the mouse or trackball.
138142

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:
144+
145+
![Screenshot showing map navigation bar.](media/create-maps-data-transformation-visual-studio-code/map-navigation-bar.png)
140146

141147
| Option | Alternative gesture |
142148
|--------|---------------------|
143-
| **Zoom in** | On the map surface, double select. <br>-or- <br>Scroll up with the mouse wheel. |
144149
| **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. |
145151
| **Zoom to fit** | None |
146152
| **Show (Hide) mini-map** | None |
147153

@@ -151,17 +157,17 @@ To move around the map, you have the following options:
151157

152158
## Select target and source elements to map
153159

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.
155161

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**.
157163

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.
159165

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**.
161167

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)**.
163169

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** (![Icon for Show source schema.](media/create-maps-data-transformation-visual-studio-code/show-source-schema-icon.png)).
165171

166172
<a name="create-direct-mapping"></a>
167173

@@ -225,7 +231,7 @@ The example in this section transforms the source element type from String type
225231

226232
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).
227233

228-
1. In the map's upper left corner, select **Show functions**.
234+
1. In the map's upper left corner, select **Show functions** (![Icon for Show functions.](media/create-maps-data-transformation-visual-studio-code/function-icon.png)).
229235

230236
![Screenshot showing source and target schema elements plus the selected function, Show functions.](media/create-maps-data-transformation-visual-studio-code/no-mapping-show-functions.png)
231237

@@ -287,7 +293,7 @@ The example in this section concatenates multiple source element types so that y
287293

288294
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).
289295

290-
1. In the map's upper left corner, select **Show functions**.
296+
1. In the map's upper left corner, select **Show functions** (![Icon for Show functions.](media/create-maps-data-transformation-visual-studio-code/function-icon.png)).
291297

292298
![Screenshot showing source and target schema elements and the selected function named Show functions.](media/create-maps-data-transformation-visual-studio-code/multi-inputs-show-functions.png)
293299

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

348354
![Screenshot showing code view with looping relationship between source and target arrays, Employee and Person, respectively.](media/create-maps-data-transformation-visual-studio-code/loop-example-code-view.png)
349355

356+
1. Continue mapping the other array elements.
357+
358+
![Screenshot showing continue looping mapping between other array items in source and target arrays.](media/create-maps-data-transformation-visual-studio-code/loop-example-continue-mapping.png)
359+
350360
<a name="add-condition"></a>
351361

352362
## 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
355365

356366
The example in this section calculates a discount to apply when the purchase quantity exceeds 20 items by using the following functions:
357367

358-
- **Greater**: Check whether item quantity is greater than 20
368+
- **Greater**: Check whether item quantity is greater than 20.
359369
- **If**: Check whether the **Greater** function returns true.
360370
- **Multiply**: Calculate the discount by multiplying the item price by 10% and the item quantity.
361371

@@ -367,7 +377,7 @@ The example in this section calculates a discount to apply when the purchase qua
367377

368378
![Screenshot showing the data map and elements to map.](media/create-maps-data-transformation-visual-studio-code/if-condition-example-elements.png)
369379

370-
1. In the map's upper left corner, select **Show functions**.
380+
1. In the map's upper left corner, select **Show functions** (![Icon for Show functions.](media/create-maps-data-transformation-visual-studio-code/function-icon.png)).
371381

372382
1. Add the following functions to the map: **Greater**, **If**, and **Multiply**
373383

-274 Bytes
Loading
10 Bytes
Loading
-190 Bytes
Loading
-155 Bytes
Loading
Loading
-3.72 KB
Loading
-18 Bytes
Loading
18.3 KB
Loading
-9.03 KB
Loading

0 commit comments

Comments
 (0)