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
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ This how-to guide shows how to create an empty data map, choose your source and
34
34
35
35
- The layout and item positions in Data Mapper are currently automatic and read only.
36
36
37
-
-If you create a mapping between parent elements, which have **Complex** type, in the source and target schemas, the mapper creates a loop that iterates through the child elements. However, you must still explicitly create mappings between the child elements.
37
+
-When you creating a mapping between parent array elementsin the source and target schemas, the mapper automatically adds a loop to iterate through the array item elements. However, you must still explicitly create mappings between the source and target array item elements.
38
38
39
39
- To call maps created with Data Mapper, you can only use the **Data Mapper Operations** action named **Transform using Data Mapper XSLT**. [For maps created by any other tool, use the **XML Operations** action named **Transform XML**](logic-apps-enterprise-integration-transform.md).
40
40
@@ -116,7 +116,7 @@ The following table describes the possible data types that might appear in a sch
116
116
117
117
| Symbol | Type | More info |
118
118
|--------|------|-----------|
119
-
|| Complex (Array) | Contains items or repeating item nodes |
119
+
|| Complex (Array) | Contains items or repeating item nodes. <br><br>An array element also displays the following connection point: <br><br> |
120
120
|| Boolean | True or false only |
121
121
|| Complex | An XML object with children properties, similar to the Object JSON type |
122
122
|| DateTime ||
@@ -180,13 +180,13 @@ The following table lists the available function groups and some example functio
180
180
181
181
| Group | Example functions |
182
182
|-------|-------------------|
183
-
| Collection | Average, Count, Direct Access, Distinct values, Filter, Index, Join, Maximum, Minimum, Reverse, Sort, Subsequence, Sum |
184
-
| Conversion | To Date, To Integer, To Number, To String |
185
-
| Date and time | Add Days, Current Date, Current Time, Equals Date |
186
-
| Logical comparison | Equal, Exists, Greater, Greater or equal, If, If Else, Is Nil, Is Null, Is Number, Is String, Less, Less or Equal, Logical AND, Logical NOT, Logical OR, Not Equal |
| String | Codepoints to String, Concat, Contains, Ends with, Length, Lowercase, Name, Regular Expression Matches, Regular Expression Replace, Replace, Starts with, String to Codepoints, Substring, Substring after, Substring before, Trim, Trim Left, Trim Right, Uppercase |
189
-
| Utility | Copy, Error, Execute XPath, Format DateTime, Format Number, Run XSLT |
183
+
|**Collection**| Average, Count, Direct Access, Distinct values, Filter, Index, Join, Maximum, Minimum, Reverse, Sort, Subsequence, Sum |
184
+
|**Conversion**| To Date, To Integer, To Number, To String |
185
+
|**Date and time**| Add Days, Current Date, Current Time, Equals Date |
186
+
|**Logical comparison**| Equal, Exists, Greater, Greater or equal, If, If Else, Is Nil, Is Null, Is Number, Is String, Less, Less or Equal, Logical AND, Logical NOT, Logical OR, Not Equal |
|**String**| Codepoints to String, Concat, Contains, Ends with, Length, Lowercase, Name, Regular Expression Matches, Regular Expression Replace, Replace, Starts with, String to Codepoints, Substring, Substring after, Substring before, Trim, Trim Left, Trim Right, Uppercase |
189
+
|**Utility**| Copy, Error, Execute XPath, Format DateTime, Format Number, Run XSLT |
190
190
191
191
### Add a function without a mapping relationship
192
192
@@ -270,31 +270,31 @@ The example in this section concatenates multiple source element types so that y
270
270
271
271
## Create a loop between arrays
272
272
273
-
If your source and target schemas include arrays, you can create a loop mapping relationship that iterates through the items in those arrays. The example in this section loops through an Employee source array and a Person target array.
273
+
If your source and target schemas contain array elements that you want to map, you can create a loop to iterates through each array's item elements. The example in this section creates a loop through a source **Employee**array and a target **Person**array and mappings between the arrays' items.
274
274
275
275
1. To view what happens in code while you create the mapping, in the mapper's upper right corner, select **View code**.
276
276
277
-
1. On the map, in the target schema area, [select the target array element and target array item elements that you want to map](#create-direct-mapping).
277
+
1. On the mapper surface, in the **Source** and **Destination** panes, find the array elements that you want to map.
278
278
279
-
1.On the map, in the target schema area, expand the target array element and array items.
279
+
1.Drag and draw a line between the pair of array items that you want in the **Source** and **Destination** panes. You can start mapping from either pane.
280
280
281
-
1. In the source schema area, add the source array element and array item elements to the map.
281
+
The following example starts a mapping between the **Name** items in the source **Employee** parent array and target **Person** parent array:
282
282
283
-
1.[Create a direct mapping between the source and target elements](#create-direct-mapping).
283
+
:::image type="content" source="media/create-maps-data-transformation-visual-studio-code/loop-example-map-array-items.png" alt-text="Screenshot shows mapper surface and drawing a mapping between the Name items in the source Employee and target Person arrays.":::
284
284
285
-

285
+
After you complete the mapping between the first pair of array items, the mapper automatically adds a loop mapping between the parent arrays, which have the following connection point type: 
286
286
287
-
When you first create a mapping relationship between a matching pair of array items, a mapping relationship is automatically created at the parent array level.
287
+
The following example shows the automatically added mapping between the source **Employee** and target **Person**parent arrays:
288
288
289
-

289
+
:::image type="content" source="media/create-maps-data-transformation-visual-studio-code/loop-example-automap-arrays.png" alt-text="Screenshot shows loop mapping between source Employee and target Person parent arrays.":::
290
290
291
291
The **Code** pane shows the mapping relationship that you created:
292
292
293
-

293
+
:::image type="content" source="media/create-maps-data-transformation-visual-studio-code/loop-example-code-view.png" alt-text="Screenshot shows Code pane with loop mapping between source and target parent arrays plus array items.":::
294
294
295
-
1. Continue mapping the other array elements.
295
+
1. Continue mapping the other array elements, for example:
296
296
297
-

297
+
:::image type="content" source="media/create-maps-data-transformation-visual-studio-code/loop-example-continue-mapping.png" alt-text="Screenshot shows more mappings between other array items in source and target arrays.":::
298
298
299
299
<aname="add-condition"></a>
300
300
@@ -471,6 +471,6 @@ To create your own function that you can use with the Data Mapper tool, follow t
471
471
472
472
1. To find your custom function in the Data Mapper tool's functions list, search for the function, or expand the **Custom functions** collection.
473
473
474
-
## Next steps
474
+
## Related content
475
475
476
476
- For data transformations using B2B operations in Azure Logic Apps, see [Add maps for transformations in workflows with Azure Logic Apps](logic-apps-enterprise-integration-maps.md)
0 commit comments