ActiveCampaign Forum

Add and Set Custom Field to contact


#1

Hi, here’s my code project in node.js :

And and example to use it :

let api = new Api(‘domain’,‘apitoken’);

var contact = {
“email”: "joe@doo.fr",
“firstName”: “Evan”,
“lastName”: “Boissonnot”,
“phone”: “7223224241”
};

api.addContactWithCustomFieldToAutomation(contact, 11, ‘http://evanboissonnot.fr’, 274)
.then((result) => {
console.log(result);
});

My custom filed 's id : 11.
Automation Id : 274.

So, as you can read, I want to add a new contact to automation, sending a new email.
Before I add the new contact to automation, I add a existing custom field (id : 11) with value : “http://evanboissonnot.fr”.

In my mail box, I get the new email, but the custom field is always empty.

Could you help me, please ?

Evan


#2

With details, I use this url to add custom field to contact :

let endOdUrl = “fieldValues”;
https://${this._domainName}.api-us1.com/api/3/${endOfUrl};


#3

Hi, I’ve created a file to test without promise.

Code is a bit ugly (hellback) but it must be run … and no custom field in my received email :’(


#4

Evan, I’ve submitted your info to our API support team and they’ll be in touch soon. Thanks!


#5

Hi tjahn !

Well thank you ! :slight_smile:


#6

Hi

What about some news, please ? my prod is blocked due this issue :slight_smile:


#7

Stuck with exactly same issue. Would appreciate any update plz.


#8

Hi Evan,

I just talked with our team and the ticket is still being worked on. We will let everyone know when the solve is out.

Thanks!


#9

Hi !

Okay, thanks you … i’m waiting :slight_smile: