How to use the function node to extract multiple data values

image

Why have you specified msg.payloadpayload.deviceid in the switch. Looking at your earlier post where you showed us the data it appears to be msg.payload.deviceid