Send value of a Device via Email using Analytics Builder

Product/components used and version/fix level:

Cumulocity IOT and Analytics Builder

Detailed explanation of the problem:

we are trying to send a value of a Device via eMail ones a Day.

Question related to a free trial, or to a production (customer) instance?

Production

how to get the device value in the eMail Text.?

Thank you

Mirko

Hi,

What do you mean by the device value? Is it the name of the device, or id of the device or some property on the device?

You can use Text Substitution block. If you are connecting the output of the Managed input block to the Object input port of the Text Substitution block, you can use a string with placeholders like #{prop_name}. So, for example:

  • To get ID of the device: #{id}
  • To get name of the device: #{name}
  • To get a simple custom property on the device: #{my_prop_name}
  • To get a nested custom property on the device: #{my_prop.value}

Thanks,
Gyan