Skip to content

Commit fa8d654

Browse files
Merge pull request #290835 from PatAltimore/patricka-create-dataflow-fixes
Add metadata field references
2 parents c12f1f4 + d969a12 commit fa8d654

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

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

Lines changed: 14 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
@@ -704,6 +710,8 @@ You can add a new property to the source data using the **New property** transfo
704710

705711
# [Bicep](#tab/bicep)
706712

713+
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).
714+
707715
For example, you could use the `temperature` field in the source data to convert the temperature to Celsius and store it in the `temperatureCelsius` field. You could also enrich the source data with the `location` field from the contextualization dataset:
708716

709717
```bicep
@@ -728,6 +736,8 @@ builtInTransformationSettings: {
728736

729737
# [Kubernetes (preview)](#tab/kubernetes)
730738

739+
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).
740+
731741
For example, you could use the `temperature` field in the source data to convert the temperature to Celsius and store it in the `temperatureCelsius` field. You could also enrich the source data with the `location` field from the contextualization dataset:
732742

733743
```yaml

0 commit comments

Comments
 (0)