Home > Device Messaging > Parsing Strategies

Parsing from a Query String

A Query String is used on REST Messages and can be used to extract message values.

For the following URL:

https://myapp.iothost.net/power?state=on

The Query String is the portion after the ? or

state=on

To extract the value state and use that within your workflow:

  1. Select Search Location Query String

  2. For Query String Field enter state

  3. Add a Storage Type to identify how this field should be stored

The value that will be stored for the above query string in the State field will be on.

Hint: This would be an excellent use of the States and Enumerations data type to ensure that the values are either on or off.