Is there an example of an elegant way to create a new device in a workflow when processing a payload and the referenced device doesn’t already exist? The logic is simply:
- JSON/payload triggers workflow
- payload contains attribute like “DeviceID”
- if “DeviceID” does not exist as a Losant device, create it with a pre-defined set of attributes and tags
- then update appropriate attributes contained in payload
I realize I am being a bit lazy, but I am just hoping someone can quickly point me to something. Thank you.