Open vwasteels opened 7 months ago
Hello there,
This is my request :
const mjSubscription = await mailjet .post("contactslist", {'version': 'v3'}) .id(process.env.MJ_CONTACT_LIST_ID) .action("managecontact") .request({ "Name": user.first_name + ' ' + user.last_name, "Properties": JSON.stringify({ "first_name": user.first_name, "last_name": user.last_name, "contakt_id": user.id, "employer_id": user.employer, }), "Action": "addnoforce", "Email": user.email, }); const mjContact = mjSubscription.body.Data[0]; console.log(mjContact);
The properties are correctly set in Mailjet
But the Properties and the Name are not set in Mailjet
Properties
Name
Any idea why ?
Thank you Vincent
I have the same problem, @vwasteels did you find a solution?
EDIT: After several tests, I observe that it works well. You should not use JSON.stringify. An object is indeed expected for Properties.
JSON.stringify
Hello there,
This is my request :
The properties are correctly set in Mailjet![Capture d’écran 2023-12-05 à 10 57 25](https://github.com/mailjet/mailjet-apiv3-nodejs/assets/1151398/89f0a948-a140-40dd-acf8-b1aaead66cca)
But the
Properties
and theName
are not set in MailjetAny idea why ?
Thank you Vincent