Looking for Lists Explanation When Calling to Edit Contact

I need to edit a contact and set a custom field to “1”. When I try to do this I am getting back the message “You did not select any lists”. Why do I need to select a list? I do not wish to change anything about the contact other than the custom field, how do I go about this? What must I add for the “p” data variable?

2 Likes

Custom fields are attached to lists. So, it’s not saying you need to change anything about the contact, just that you need to associate the custom field with a list (or make it global).

I’m not sure what you’re referring to here:

What must I add for the “p[]” data variable?

I can loop in one of our devs to help with that.

Hey @acxsystem! My guess is that you’re using contact_edit (http://www.activecampaign.com/api/example.php?call=contact_edit). However, if you don’t want to have to pass the list id, you can use contact_sync (http://www.activecampaign.com/api/example.php?call=contact_sync), which is much better!

3 Likes

This does not work if you need to update the email. It creates a new user.