Skip to content

Commit 42cbe39

Browse files
Merge pull request #291926 from PatAltimore/patricka-metadata-feedback
Clarify $metadata syntax for dataflows
2 parents f1864a5 + 9bc494b commit 42cbe39

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

articles/iot-operations/connect-to-cloud/howto-create-dataflow.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: patricka
66
ms.service: azure-iot-operations
77
ms.subservice: azure-data-flows
88
ms.topic: how-to
9-
ms.date: 11/11/2024
9+
ms.date: 12/12/2024
1010
ai-usage: ai-assisted
1111

1212
#CustomerIntent: As an operator, I want to understand how to create a dataflow to connect data sources.
@@ -592,9 +592,9 @@ To filter the data on a condition, you can use the `filter` stage. The condition
592592
| Filter condition | The condition to filter the data based on a field in the source data. |
593593
| Description | Provide a description for the filter condition. |
594594

595-
In the filter condition field, type `@` or select **Ctrl + Space** to select datapoints from a dropdown.
595+
In the filter condition field, enter `@` or select **Ctrl + Space** to choose datapoints from a dropdown.
596596

597-
You can access MQTT metadata properties using the format `@$metadata.user_properties.<property>` or `@$metadata.topic`. You can also enter $metadata headers using the format `@$metadata.<header>`. For more information, see [field references](concept-dataflow-mapping.md#field-references).
597+
You can enter MQTT metadata properties using the format `@$metadata.user_properties.<property>` or `@$metadata.topic`. You can also enter $metadata headers using the format `@$metadata.<header>`. The `$metadata` syntax is only needed for MQTT properties that are part of the message header. For more information, see [field references](concept-dataflow-mapping.md#field-references).
598598

599599
The condition can use the fields in the source data. For example, you could use a filter condition like `@temperature > 20` to filter data less than or equal to 20 based on the temperature field.
600600

@@ -662,9 +662,9 @@ You can use the **Compute** transform to apply a formula to the source data. Thi
662662
| Last known value | Optionally, use the last known value if the current value isn't available. |
663663

664664

665-
You can enter or edit a formula in the **Formula** field. The formula can use the fields in the source data. Type `@` or select **Ctrl + Space** to select datapoints from a dropdown.
665+
You can enter or edit a formula in the **Formula** field. The formula can use the fields in the source data. Enter `@` or select **Ctrl + Space** to choose datapoints from a dropdown.
666666

667-
You can access MQTT metadata properties using the format `@$metadata.user_properties.<property>` or `@$metadata.topic`. You can also enter $metadata headers using the format `@$metadata.<header>`. For more information, see [field references](concept-dataflow-mapping.md#field-references).
667+
You can enter MQTT metadata properties using the format `@$metadata.user_properties.<property>` or `@$metadata.topic`. You can also enter $metadata headers using the format `@$metadata.<header>`. The `$metadata` syntax is only needed for MQTT properties that are part of the message header. For more information, see [field references](concept-dataflow-mapping.md#field-references).
668668

669669
The formula can use the fields in the source data. For example, you could use the `temperature` field in the source data to convert the temperature to Celsius and store it in the `temperatureCelsius` output field.
670670

@@ -682,11 +682,14 @@ You can rename a datapoint using the **Rename** transform. This operation is use
682682

683683
| Setting | Description |
684684
|--------------------|---------------------------------------------------------------------------------------------------------|
685-
| Datapoint | Select a datapoint from the dropdown or enter a $metadata header using the format `$metadata.<header>.` |
685+
| Datapoint | Select a datapoint from the dropdown or enter a $metadata header. |
686686
| New datapoint name | Enter the new name for the datapoint. |
687687
| Description | Provide a description for the transformation. |
688688

689-
You can access MQTT metadata properties using the format `@$metadata.user_properties.<property>` or `@$metadata.topic`. You can also enter $metadata headers using the format `@$metadata.<header>`. For more information, see [field references](concept-dataflow-mapping.md#field-references).
689+
Enter `@` or select **Ctrl + Space** to choose datapoints from a dropdown.
690+
691+
You can enter MQTT metadata properties using the format `@$metadata.user_properties.<property>` or `@$metadata.topic`. You can also enter $metadata headers using the format `@$metadata.<header>`. The `$metadata` syntax is only needed for MQTT properties that are part of the message header. For more information, see [field references](concept-dataflow-mapping.md#field-references).
692+
690693

691694
1. Select **Apply**.
692695

0 commit comments

Comments
 (0)