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
+26-3Lines changed: 26 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,7 +200,7 @@ For a straightforward transformation between elements with the same type in the
200
200
For a more complex transformation between elements in the source and target schemas, such as elements that you want to combine or that have different data types, you can use one or more functions to perform tasks for that transformation. The following table lists the available function groups and example functions that you can use:
201
201
202
202
| Group | Example functions |
203
-
|-------|-----------|
203
+
|-------|-------------------|
204
204
| Collection | Average, Count, Direct Access, Index, Join, Maximum, Minimum, Sum |
205
205
| Conversion | To date, To integer, To number, To string |
206
206
| Date and time | Add days |
@@ -209,6 +209,10 @@ For a more complex transformation between elements in the source and target sche
209
209
| String | Code points to string, Concat, Contains, Ends with, Length, Lowercase, Name, Regular expression matches, Regular expression replace, Replace, Starts with, String to code-points, Substring, Substring after, Substring before, Trim, Trim left, Trim right, Uppercase |
210
210
| Utility | Copy, Error, Format date-time, Format number |
211
211
212
+
On the map, the function's label looks like the following example and is color-coded based on the function group. To the function name's left side, a symbol for the function appears. To the function name's right side, a symbol for the function output's data type appears.
213
+
214
+

215
+
212
216
### Add a function without a mapping relationship
213
217
214
218
The example in this section transforms the source element type from String type to DateTime type, which matches the target element type. The example uses the **To date** function, which takes a single input.
@@ -233,6 +237,7 @@ The example in this section transforms the source element type from String type
233
237
> appears on the map, but disconnected from any elements or other functions, for example:
234
238
>
235
239
> 
240
+
>
236
241
237
242
1. Expand the function shape to display the function's details and connection points. To expand the function shape, select inside the shape.
238
243
@@ -369,16 +374,34 @@ The example in this section calculates a discount to apply when the purchase qua
369
374
* The source schema's **ItemPrice** element to the target schema's **ItemPrice** element
370
375
* The source schema's **ItemQuantity** element to the **Greater** function's **Value** field
371
376
* The **Greater** function's output to the **If** function's **Condition** field
372
-
* The **If** function's output to the target schema's **ItemDiscount** element
373
377
* The source schema's **ItemPrice** element to the **Multiply** function's **Multiplicand 0*** field
374
378
* The **Multiply** function's output to the **If** function's **Value** field
379
+
* The **If** function's output to the target schema's **ItemDiscount** element
380
+
381
+
> [!NOTE]
382
+
>
383
+
> In the **If** function, the word **ANY** appears to the right of the function name,
384
+
> indicating that you can assign the output value to anything.
385
+
386
+
1. In the following functions, on the **Properties** tab, specify the following values:
387
+
388
+
| Function | Input parameter and value |
389
+
|----------|---------------------------|
390
+
|**Greater**| - **Value**#1: The source element named **ItemQuantity** <br>- **Value**#2: **20**|
391
+
|**Multiply**| - **Multiplicand**#1: The source element named **ItemPrice** <br>- **Multiplicand**#2: **.10**|
The code view window reflects the mapping relationship that you created:
399
+
400
+

378
401
379
402
## Save your map
380
403
381
-
On the map toolbar, select **Save**.
404
+
When you're done, on the map toolbar, select **Save**.
382
405
383
406
Visual Studio Code saves your map as the following artifacts:
0 commit comments