Skip to content

Commit ccc7812

Browse files
author
ecfan
committed
Draft updates
1 parent a7a7a07 commit ccc7812

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This how-to guide shows how to create an empty data map, choose your source and
3434

3535
- The layout and item positions in Data Mapper are currently automatic and read only.
3636

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 elements in 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.
3838

3939
- 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).
4040

@@ -116,7 +116,7 @@ The following table describes the possible data types that might appear in a sch
116116

117117
| Symbol | Type | More info |
118118
|--------|------|-----------|
119-
| ![Icon representing an Array data type.](media/create-maps-data-transformation-visual-studio-code/complex-array-icon.png) | Complex (Array) | Contains items or repeating item nodes |
119+
| ![Icon representing an Array data type.](media/create-maps-data-transformation-visual-studio-code/complex-array-icon.png) | Complex (Array) | Contains items or repeating item nodes. <br><br>An array element also displays the following connection point: <br><br> ![Icon for array element connection point.](media/create-maps-data-transformation-visual-studio-code/array-connection-point.png) |
120120
| ![Icon representing a Boolean data type.](media/create-maps-data-transformation-visual-studio-code/bool-icon.png) | Boolean | True or false only |
121121
| ![Icon representing a Complex data type.](media/create-maps-data-transformation-visual-studio-code/complex-icon.png) | Complex | An XML object with children properties, similar to the Object JSON type |
122122
| ![Icon representing a DateTime data type.](media/create-maps-data-transformation-visual-studio-code/datetime-icon.png) | DateTime | |
@@ -180,13 +180,13 @@ The following table lists the available function groups and some example functio
180180

181181
| Group | Example functions |
182182
|-------|-------------------|
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 |
187-
| Math | Absolute, Add, Arctangent, Ceiling, Cosine, Divide, Exponential, Exponential (base 10), Floor, Integer Divide, Log, Log (base 10), Module, Multiply, Power, Round, Sine, Square Root, Subtract, Tangent |
188-
| 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 |
187+
| **Math** | Absolute, Add, Arctangent, Ceiling, Cosine, Divide, Exponential, Exponential (base 10), Floor, Integer Divide, Log, Log (base 10), Module, Multiply, Power, Round, Sine, Square Root, Subtract, Tangent |
188+
| **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 |
190190

191191
### Add a function without a mapping relationship
192192

@@ -270,31 +270,31 @@ The example in this section concatenates multiple source element types so that y
270270

271271
## Create a loop between arrays
272272

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

275275
1. To view what happens in code while you create the mapping, in the mapper's upper right corner, select **View code**.
276276

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

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

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:
282282

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.":::
284284

285-
![Screenshot showing the data map and drawing a connection between Name array items in the source and target arrays, Employee and Person, respectively.](media/create-maps-data-transformation-visual-studio-code/loop-example-map-array-items.png)
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: ![Icon for array element completed connection point.](media/create-maps-data-transformation-visual-studio-code/array-connection-point-complete.png)
286286

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:
288288

289-
![Screenshot showing loop mapping between the Name array items plus the source and target arrays, Employee and Person, respectively.](media/create-maps-data-transformation-visual-studio-code/loop-example-automap-arrays.png)
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.":::
290290

291291
The **Code** pane shows the mapping relationship that you created:
292292

293-
![Screenshot showing Code pane 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)
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.":::
294294

295-
1. Continue mapping the other array elements.
295+
1. Continue mapping the other array elements, for example:
296296

297-
![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)
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.":::
298298

299299
<a name="add-condition"></a>
300300

@@ -471,6 +471,6 @@ To create your own function that you can use with the Data Mapper tool, follow t
471471

472472
1. To find your custom function in the Data Mapper tool's functions list, search for the function, or expand the **Custom functions** collection.
473473

474-
## Next steps
474+
## Related content
475475

476476
- 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)
809 Bytes
Loading
1.13 KB
Loading
-35.8 KB
Loading
445 Bytes
Loading
-20.2 KB
Loading
-32.8 KB
Loading

0 commit comments

Comments
 (0)