You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to set custom arguments in the request using the Node.js SDK and receive them in the Event Webhook, but I'm unable to receive them correctly. Could you please provide guidance on how to implement this?
Package versions
node: 18.20
@sendgrid/mail: 8.1.3
source code (typescript)
// Send emailconstservice=newMailService();service.send({from: `Cafe de Gamoyon<${process.env.FROM}>`,to: payload.mail,bcc: bcc,subject: mailTemplate.subject,text: text,// is that correct ?customArgs: {mail_notification_id: mailNotificationId,},});// Define event webhook payload typetypeSendgridEvent={email: string;timestamp: Date;"smtp-id": string;event: string;sg_event_id: string;sg_message_id: string;category?: string|string[];response: string;}&Partial<Record<string,string>>;
Hi, all.
I would like to set custom arguments in the request using the Node.js SDK and receive them in the Event Webhook, but I'm unable to receive them correctly. Could you please provide guidance on how to implement this?
Package versions
source code (typescript)
expected
actual
When I looked at the sample code, custom arguments were set in the personalizations. Is this the only way to receive them in the Event Webhook?
https://www.twilio.com/docs/sendgrid/for-developers/tracking-events/event#custom-arguments
The text was updated successfully, but these errors were encountered: