[quote="apex, post:5, topic:23662"]
[{"id":"980fe654.f77208","type":"debug","z":"25c3e47b.ae7f9c","name":"number of log","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1090,"y":560,"wires":[]},{"id":"30ceee4c.224562","type":"function","z":"25c3e47b.ae7f9c","name":"log count","func":"msg.payload = msg.payload.data.count;\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":560,"wires":[["980fe654.f77208","88b5bfb3.54283"]]}]
//=================
[/quote] thanks
i am in mobile now so formatting is hard
[{"id":"980fe654.f77208","type":"debug","z":"25c3e47b.ae7f9c","name":"number of log","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1090,"y":560,"wires":[]},{"id":"30ceee4c.224562","type":"function","z":"25c3e47b.ae7f9c","name":"log count","func":"msg.payload = msg.payload.data.count;\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":560,"wires":[["980fe654.f77208","88b5bfb3.54283"]]}]
//=================
actually the msg.payload.data.count; is an number of total of api call
and in this example is 600
i can get the result from the
msg = msg.payload.data.count
return msg
and link it to debug message node the result is 600
and so i wanna make use of it like
for(int i =0, i < msg.payload.data.count, i++)
{
show msg.payload.xxx[i] sth or do sth
}
thanks