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
+20-24Lines changed: 20 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,38 +179,34 @@ To change a value's type or format, you can use these conversion functions. For
179
179
180
180
## Implicit data type conversions
181
181
182
-
The Logic Apps service automatically or implicitly performs some data type conversions, which means that you can omit the corresponding expressions to manually or explicitly make those conversions. However, if you use these expressions in your logic app, save your logic app, reload your logic app, and edit the expression's parameter values, Logic Apps removes those expressions from designer view. To avoid this Logic Apps behavior, don't edit the expression's parameter values. If Logic Apps removes the expressions anyway, those expressions reappear after you save your logic app.
183
-
184
-
This table describes the functions or expressions that are affected by this Logic Apps behavior and should omit:
185
-
186
-
| Function or expression | Example use cases |
187
-
|------------------------|-------------------|
188
-
|`base64(<value>)`| - Converting from **Binary** or **File** to **Byte** <br>- Converting from **Other** to **Byte**|
189
-
|`base64ToBinary(<value>)`| Converting from **Byte** to **Binary** or **File**|
190
-
|`base64ToString(<value>)`| Converting from **Byte** to **Other**|
191
-
|`base64(decodeDataUri(<value>))`| Converting from **DataUri** to **Byte**|
192
-
|`concat('data:;base64,',<value>)`| - Converting from **Binary** or **File** to **DataUri** <br>- Converting from **Byte** to **DataUri**|
193
-
|`concat('data:,',encodeUriComponent(<value>))`| Converting from **Other** to **DataUri**|
194
-
|`decodeDataUri(<value>)`| Converting from **DataUri** to **Binary**, **File**, or **Other** type |
195
-
|||
196
-
197
-
If you use non-string values where strings are expected as inputs, Logic Apps automatically converts the non-string values into strings, for example:
182
+
Azure Logic Apps automatically or implicitly converts between some data types, so you don't have to manually convert these types. For example, if you use non-string values where strings are expected as inputs, Logic Apps automatically converts the non-string values into strings.
198
183
199
-
* A trigger returns a numerical value as output through this expression:
184
+
For example, suppose a trigger returns a numerical value as output:
200
185
201
-
`triggerBody()?['number']`
186
+
`triggerBody()?['123']`
202
187
203
-
If the numerical value is used for a string input, such as an HTTP URL, you get this result:
188
+
If you use this numerical output where string input is expected, such as a URL, Logic Apps automatically converts the value into a string by using the curly braces (`{}`) notation:
204
189
205
-
`@{triggerBody()?['number']}`
190
+
`@{triggerBody()?['123']}`
206
191
207
-
* A trigger returns a string value as output through this expression:
192
+
### Base64 encoding and decoding
208
193
209
-
`triggerBody()?['string']`
194
+
Logic Apps automatically or implicitly performs base64 encoding or decoding, so you don't have to manually perform these operations by using the corresponding expressions:
210
195
211
-
If the string value is used for a string input, you get this result:
196
+
*`base64(<value>)`
197
+
*`base64ToBinary(<value>)`
198
+
*`base64ToString(<value>)`
199
+
*`base64(decodeDataUri(<value>))`
200
+
*`concat('data:;base64,',<value>)`
201
+
*`concat('data:,',encodeUriComponent(<value>))`
202
+
*`decodeDataUri(<value>)`
212
203
213
-
`@triggerBody()?['string']`
204
+
> [!NOTE]
205
+
> If you manually add these expressions to your logic app, for example, by using the expression editor,
206
+
> navigate away from the Logic App Designer and return to the designer, the designer shows only the
207
+
> parameter values. The expressions are preserved in code view only if you don't edit the parameter
208
+
> values. Otherwise, Logic Apps removes the expressions from code view, leaving only the parameter values.
209
+
> This behavior doesn't affect encoding or decoding, only whether the expressions are shown.
0 commit comments