Skip to content

Commit 011bdaf

Browse files
authored
Fix null-ignore example
1 parent 92f600d commit 011bdaf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

articles/logic-apps/logic-apps-workflow-definition-language.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: logic-apps
55
ms.suite: integration
66
ms.reviewer: estfan, azla
77
ms.topic: reference
8-
ms.date: 12/07/2023
8+
ms.date: 06/13/2024
99
---
1010

1111
# Schema reference guide for the Workflow Definition Language in Azure Logic Apps
@@ -276,8 +276,7 @@ Here is the general structure for an output definition:
276276
| <*key-type*> | Yes | int, float, string, securestring, bool, array, JSON object | The type for the output return value |
277277
| <*key-value*> | Yes | Same as <*key-type*> | The output return value |
278278

279-
To get the output from a workflow run, review your logic app's run history and details in the Azure portal or use the [Workflow REST API](/rest/api/logic/workflows). You can also pass output to external systems, for example,
280-
Power BI so that you can create dashboards.
279+
To get the output from a workflow run, review your logic app's run history and details in the Azure portal or use the [Workflow REST API](/rest/api/logic/workflows). You can also pass output to external systems, for example, Power BI so that you can create dashboards.
281280

282281
<a name="operators"></a>
283282

@@ -289,8 +288,8 @@ In [expressions](#expressions) and [functions](#functions), operators perform sp
289288
|----------|------|
290289
| `'` | To use a string literal as input or in expressions and functions, wrap the string only with single quotation marks, for example, `'<myString>'`. Do not use double quotation marks (`""`), which conflict with the JSON formatting around an entire expression. For example: <br><br>**Yes**: length('Hello') </br>**No**: length("Hello") <br><br>When you pass arrays or numbers, you don't need wrapping punctuation. For example: <br><br>**Yes**: length([1, 2, 3]) </br>**No**: length("[1, 2, 3]") |
291290
| `[]` | To reference a value at a specific position (index) in an array or inside a JSON object, use square brackets, for example: <br><br>- To get the second item in an array: <br><br>`myArray[1]` <br><br>- To access the properties inside a JSON object: <br><br>*Example 1*: <br>`setProperty(<object>, '<parent-property>', addProperty(<object>['<parent-property>'], '<child-property>', <value>)` <br><br>*Example 2*: <br>`lastIndexOf(triggerBody()?['subject'],'some string')` |
292-
| `.` | To reference a property in an object, use the dot operator. For example, to get the `name` property for a `customer` JSON object: <br><br>`"@parameters('customer').name"` |
293-
| `?` | To reference null properties in an object without a runtime error, use the question mark operator. For example, to handle null outputs from a trigger, you can use this expression: <br><br>`@coalesce(trigger().outputs?.body?.<someProperty>, '<property-default-value>')` |
291+
| `.` | To reference a property in an object, use the dot operator. For example, to get the `name` property for a `customer` JSON object: <br><br>`"parameters('customer').name"` |
292+
| `?` | To reference null properties in an object without a runtime error, use the null-ignore (**?**) operator. For example, to handle null outputs from a trigger, you can use the following expression: <br><br>`coalesce(trigger().outputs?.body?['<someProperty>'], '<property-default-value>')` |
294293

295294
<a name="functions"></a>
296295

0 commit comments

Comments
 (0)