Skip to content

Commit 0b471a6

Browse files
committed
Add metadata field references
1 parent 7611372 commit 0b471a6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,11 @@ 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. You can also enter $metadata headers using the format `@$metadata.<header>`.
595+
In the filter condition field, type `@` or select **Ctrl + Space** to select datapoints from a dropdown.
596596

597-
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.
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)
598+
599+
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.
598600

599601
1. Select **Apply**.
600602

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

662664

663-
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. You can also enter $metadata headers using the format `@$metadata.<header>`.
664-
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.
666+
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).
668+
665669
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.
666670

667671
1. Select **Apply**.
@@ -682,6 +686,8 @@ You can rename a datapoint using the **Rename** transform. This operation is use
682686
| New datapoint name | Enter the new name for the datapoint. |
683687
| Description | Provide a description for the transformation. |
684688

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).
690+
685691
1. Select **Apply**.
686692

687693
#### New property

0 commit comments

Comments
 (0)