full-engine-14788
04/30/2024, 7:16 AMfull-engine-14788
04/30/2024, 7:22 AMcold-jewelry-54343
04/30/2024, 9:13 AMworkflow.varWhatsAppNum = whatsappUserId
inside of the same code block as the const payload = event.payload
const whatsappUserId = payload?.whatsapp?.userid
?full-engine-14788
04/30/2024, 7:36 PMcold-jewelry-54343
05/03/2024, 10:35 AMpayload>user>tags
can you try the following ?
js
const payload = event.payload;
const whatsappUserId = payload.user.tags['whatsapp:userid'];
workflow.varWhatsAppNum = whatsappUserId
console.log(whatsappUserId); // This will output the WhatsApp User ID
mysterious-salesmen-1196
06/20/2024, 8:13 AMcold-jewelry-54343
06/20/2024, 11:53 AMmysterious-salesmen-1196
06/20/2024, 12:52 PMmysterious-salesmen-1196
06/20/2024, 1:15 PMcold-jewelry-54343
06/21/2024, 9:47 AMwhatsapp user id
might be the wrong id
or the "syntax" is wrong e.g. it needs to be written differentcareful-flower-51291
07/06/2024, 5:24 AM