So I have an auto rule that's sending a web request, the {{webResponse.body.data}} contains:
data={total=1, items=[{id=3186}]
I am trying to define variable {{DeviceID}} as '3186' however so far failing. Here's what I've tried the following smart values that are in an Add Comment task:
{{webResponse.body.data.items.split("=").substringBefore("}")}}
{{webResponse.body.data.items.split("=")}}
{{webResponse.body.data.items.split("=").last}}
{{webResponse.body.data.items.split("=").2}}{{webResponse.body.data.items.split("=").remove("{").remove("}")}}{{webResponse.body.data.items.split("=").remove("{}")}}
These are all attempts from what I can gleen through the various docs, and right now they all return null, nada, zilch.
{{webResponse.body.data.items}} returns {id=3186}
This looks like a shotgun approach but I was really trying to get less specific to find the cut off but it eludes me and at this point I'm lost.