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/workflow-definition-language-functions-reference.md
+46-28Lines changed: 46 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: logic-apps
5
5
ms.suite: integration
6
6
ms.reviewer: jonfan, logicappspm
7
7
ms.topic: conceptual
8
-
ms.date: 04/17/2020
8
+
ms.date: 04/23/2020
9
9
---
10
10
11
11
# Reference guide to using functions in expressions for Azure Logic Apps and Power Automate
@@ -142,12 +142,12 @@ To work with conditions, compare values and expression results, or evaluate vari
142
142
143
143
To change a value's type or format, you can use these conversion functions. For example, you can change a value from a Boolean to an integer. For more information about how Logic Apps handles content types during conversion, see [Handle content types](../logic-apps/logic-apps-content-type.md). For the full reference about each function, see the [alphabetical list](../logic-apps/workflow-definition-language-functions-reference.md#alphabetical-list).
144
144
145
-
> [!IMPORTANT]
146
-
> The Logic Apps service automatically converts values between specific data types, which means
147
-
> that you don't have to manually convert between those types by using the relevant expressions.
148
-
> If you use these expressions in the designer or code view, Logic Apps removes those expressions
149
-
> after you save your logic app because these conversions happen automatically. For more information,
150
-
> see [Implicit data type conversions](#implicit-data-conversions).
145
+
> [!NOTE]
146
+
> Azure Logic Apps automatically converts values between some data types,
147
+
> which means that you don't have to manually perform these conversions.
148
+
> However, if you do so, you might experience unexpected display behaviors,
149
+
> which don't affect the actual conversions, only how they are shown.
150
+
> For more information, see [Implicit data type conversions](#implicit-data-conversions).
151
151
152
152
| Conversion function | Task |
153
153
| ------------------- | ---- |
@@ -972,6 +972,13 @@ And returns this result: `["hello"]`
972
972
973
973
Return the base64-encoded version for a string.
974
974
975
+
> [!NOTE]
976
+
> Azure Logic Apps automatically performs base64 encoding and decoding,
977
+
> which means that you don't have to manually perform these conversions.
978
+
> However, if you do so, you might experience unexpected display behaviors,
979
+
> which don't affect the actual conversions, only how they are shown.
980
+
> For more information, see [Implicit data type conversions](#implicit-data-conversions).
981
+
975
982
```
976
983
base64('<value>')
977
984
```
@@ -1002,6 +1009,13 @@ And returns this result: `"aGVsbG8="`
1002
1009
1003
1010
Return the binary version for a base64-encoded string.
1004
1011
1012
+
> [!NOTE]
1013
+
> Azure Logic Apps automatically performs base64 encoding and decoding,
1014
+
> which means that you don't have to manually perform these conversions.
1015
+
> However, if you do so, you might experience unexpected display behaviors,
1016
+
> which don't affect the actual conversions, only how they are shown.
1017
+
> For more information, see [Implicit data type conversions](#implicit-data-conversions).
1018
+
1005
1019
```
1006
1020
base64ToBinary('<value>')
1007
1021
```
@@ -1032,11 +1046,14 @@ And returns this result:
1032
1046
1033
1047
### base64ToString
1034
1048
1035
-
Return the string version for a base64-encoded string,
1036
-
effectively decoding the base64 string.
1037
-
Use this function rather than [decodeBase64()](#decodeBase64).
1038
-
Although both functions work the same way,
1039
-
`base64ToString()` is preferred.
1049
+
Return the string version for a base64-encoded string, effectively decoding the base64 string. Use this function rather than [decodeBase64()](#decodeBase64). Although both functions work the same way, `base64ToString()` is preferred.
1050
+
1051
+
> [!NOTE]
1052
+
> Azure Logic Apps automatically performs base64 encoding and decoding,
1053
+
> which means that you don't have to manually perform these conversions.
1054
+
> However, if you do so, you might experience unexpected display behaviors,
1055
+
> which don't affect the actual conversions, only how they are shown.
1056
+
> For more information, see [Implicit data type conversions](#implicit-data-conversions).
1040
1057
1041
1058
```
1042
1059
base64ToString('<value>')
@@ -1643,11 +1660,7 @@ And returns this result: `74`
1643
1660
1644
1661
### decodeBase64
1645
1662
1646
-
Return the string version for a base64-encoded string,
1647
-
effectively decoding the base64 string.
1648
-
Consider using [base64ToString()](#base64ToString)
1649
-
rather than `decodeBase64()`.
1650
-
Although both functions work the same way,
1663
+
Return the string version for a base64-encoded string, effectively decoding the base64 string. Consider using [base64ToString()](#base64ToString) rather than `decodeBase64()`. Although both functions work the same way,
1651
1664
`base64ToString()` is preferred.
1652
1665
1653
1666
```
@@ -1678,11 +1691,14 @@ And returns this result: `"hello"`
1678
1691
1679
1692
### decodeDataUri
1680
1693
1681
-
Return the binary version for a data uniform resource identifier (URI).
1682
-
Consider using [dataUriToBinary()](#dataUriToBinary),
1683
-
rather than `decodeDataUri()`.
1684
-
Although both functions work the same way,
1685
-
`dataUriToBinary()` is preferred.
1694
+
Return the binary version for a data uniform resource identifier (URI). Consider using [dataUriToBinary()](#dataUriToBinary), rather than `decodeDataUri()`. Although both functions work the same way, `dataUriToBinary()` is preferred.
1695
+
1696
+
> [!NOTE]
1697
+
> Azure Logic Apps automatically performs base64 encoding and decoding,
1698
+
> which means that you don't have to manually perform these conversions.
1699
+
> However, if you do so, you might experience unexpected display behaviors,
1700
+
> which don't affect the actual conversions, only how they are shown.
1701
+
> For more information, see [Implicit data type conversions](#implicit-data-conversions).
1686
1702
1687
1703
```
1688
1704
decodeDataUri('<value>')
@@ -1780,12 +1796,14 @@ And return this result: `2`
1780
1796
1781
1797
### encodeUriComponent
1782
1798
1783
-
Return a uniform resource identifier (URI) encoded version for a
1784
-
string by replacing URL-unsafe characters with escape characters.
1785
-
Consider using [uriComponent()](#uriComponent),
1786
-
rather than `encodeUriComponent()`.
1787
-
Although both functions work the same way,
1788
-
`uriComponent()` is preferred.
1799
+
Return a uniform resource identifier (URI) encoded version for a string by replacing URL-unsafe characters with escape characters. Consider using [uriComponent()](#uriComponent), rather than `encodeUriComponent()`. Although both functions work the same way, `uriComponent()` is preferred.
1800
+
1801
+
> [!NOTE]
1802
+
> Azure Logic Apps automatically performs base64 encoding and decoding,
1803
+
> which means that you don't have to manually perform these conversions.
1804
+
> However, if you do so, you might experience unexpected display behaviors,
1805
+
> which don't affect the actual conversions, only how they are shown.
1806
+
> For more information, see [Implicit data type conversions](#implicit-data-conversions).
0 commit comments