Hello, i tried to get product names out of an object array in a new array in a function node but i get an error and i do not know how to get it working.
Can someone help me?
function node:
var abgelaufen = {};
var abgelaufenname = ;
If I understand what you mean that is because you have abgelaufenname.push({payload:msg.payload.overdue_products[idx].product.name})
so you are pushing objects to the array. If you just want the values then try abgelaufenname.push(msg.payload.overdue_products[idx].product.name)
which will push just the values.
Thank you very much!
Everything is working now with msg.payload
Just for Information what i am doing.
I tried to get an daily overview/alert via telegram of my overdue food products via restapi from my grocy erp from here grocy - ERP fĂĽr deinen KĂĽhlschrank
Everything is working now as expected.
Thanks to all!