Forum Discussion
DougHenning1
3 years agoCommunity Manager
To reference the son1 and son2 fields using a variable, you need to refer to each as a['son1'] and a['son2']. Try this:
Hope that helps!
------------------------------
Doug Henning
------------------------------
"to": "bsp8bd9qp",
"data": [
{% for i in range(2) %}
{ "17": { "value" : "{{a['son'~loop.index]}}" } }
{% if loop.last == false %},{% endif %}
{% endfor %}
]
}
Hope that helps!
------------------------------
Doug Henning
------------------------------
- PrashantMaheshw3 years agoQrew Captain
DOUG !!!
MY BIG FAT THANKS TO YOU !!!
adding you to friend list for PM , please accept
You've helped me cut down my jinja query from 30 lines to few handful .
THANK YOU SO MUCH !!!
------------------------------
Prashant Maheshwari
------------------------------