Hi All.
I am using the webhook payload template editor tool and for some reason unknown to me, I can not access the child object "uplink" I am using the same syntax as per the Meraki Docs.
LIQUID:
{
"alert":"{{alertData.uplink}}"
}
The Error I get:
" Failed to load webhook payload template preview. Make sure you're using valid JSON format. ["Body Liquid error: undefined variable uplink"] "
The uplink value does exist:
LIQUID:
{
"alert" : {{alertData | jsonify }}
}
JSON:
{
"alert": {
"uplink": "0"
}
}
Example from Meraki docs which I followed to the "T":
https://developer.cisco.com/meraki/webhooks/custom-payload-templates-overview/#overview
Child object properties can also be accessed using the {{foo.bar}} syntax.
LIQUID:
{
"port":"{{alertData.portNum}}"
}
JSON:
{
"port": "3"
}
Any suggestions would be appreciated, not sure if it is a bug or if I am doing something wrong.