The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

ACTION_BY_CONTACT not working?

Highlighted
Occasional Participant

ACTION_BY_CONTACT not working?

Below is the XML i'm PUTing to update a contact to be included in contact lists. The lists are included in the account owners sign up form and everything is working as expected...



Apart from the OptInSource tag. I'm setting this to ACTION_BY_CONTACT because users are can opt themselves back in to the lists using the a web form. Even though I'm setting the tag to ACTION_BY_CONTACT the emails always appear in the lists as 'Added by Site owner'. New contacts are shown as 'Added by Contact'.



Can you offer some advice please? Is it impossible to add ACTION_BY_CONTACT updates to contacts through the API? As you can see I've tried adding the OptInSource in the ContactList tags also but with no joy.



Many thanks for any help you can provide.



JD




<entry xmlns="http://www.w3.org/2005/Atom">
<id>http://api.constantcontact.com/ws/customers//contacts/892</id>
<title type="text">Contact: </title>
<updated>2008-04-25T19:29:06.096Z</updated>
<author> </author>
<content type="application/vnd.ctct+xml">
<Contact xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers//contacts/892">
<EmailAddress></EmailAddress>
<OptInSource>ACTION_BY_CONTACT</OptInSource>
<ContactLists>
<ContactList id="http://api.constantcontact.com/ws/customers//lists/25">
<link xmlns="http://www.w3.org/2005/Atom" href="http://api.constantcontact.com/ws/customers//lists/25" rel="self"></link>
<OptInSource>ACTION_BY_CONTACT</OptInSource>
</ContactList>
<ContactList id="http://api.constantcontact.com/ws/customers//lists/24">
<link xmlns="http://www.w3.org/2005/Atom" href="http://api.constantcontact.com/ws/customers//lists/24" rel="self"></link>
<OptInSource>ACTION_BY_CONTACT</OptInSource>
</ContactList>
</ContactLists>
</Contact>
</content>
</entry>
22 REPLIES 22
Highlighted
Developer

re: ACTION BY CONTACT

I believe you are doing this correctly. I will look into this further to find out what you should be able to do.
Tom M
Group Product Manager – Content Editing
Constant Contact
Highlighted
Occasional Participant

re: ACTION BY CONTACT

Great, thanks Tom

James
Highlighted
Developer

re: ACTION_BY_CONTACT

James
This API resource is not working as expected. We are looking into the issue now. It appears that the OptInSource works appropriately on Contact Creation (POST), but does support the same options as the application UI on Contact Updates (PUT). I will post on this thread when I have an update.

Thanks,
Tom
Tom M
Group Product Manager – Content Editing
Constant Contact
Highlighted
Occasional Participant

re: ACTION_BY_CONTACT

Hi Tom,

Any news on this problem? is there and ETA for the fix to be in place at all?

Many thanks,

James
Highlighted
Developer

re: ACTION_BY_CONTACT

We are reviewing the issue and refining both what actions should be supported via the API and the possible implications on the Contacts resource (which we are hoping to minimize). I do not expect changes to the behavior of the API in the short term and suggest you consider work arounds for the time being.
Thanks,
Tom M
Group Product Manager – Content Editing
Constant Contact
Highlighted
Participant

update?

When will this be fixed? This is a critical bug for our clients and renders some functionality unusable!

Aaron
Highlighted
Occasional Participant

update?

This is also a problem for me. Can we get an update, or at least a suggestion for a workaround?
Highlighted
Developer

re: ACTION_BY_CONTACT and Contact Updates

We are working on changes to enable a contact update (PUT) initiated by the Contact (ie. support for a PUT with OptInSource=ACTION_BY_CONTACT). We are not expecting to release changes in this area in the short term.

Until we release changes, I have two suggestions:
1) Use the SiteVisitorAPI to perform the contact change. This API allows adds and changes "by contact".

2) Use the Contacts Resource (as I believe you are doing now) and use ACTION_BY_CUSTOMER to perform contact changes.

Thanks,
Tom M
Group Product Manager – Content Editing
Constant Contact
Highlighted
Developer

ACTION_BY_CONTACT now supports re-subscribe

The Contacts Resource now supports opting a contact back in by using the 'ACTION_BY_CONTACT' OptInSource. Note that our Constant Contact policy forbids re-subscribing contacts without their explicit permission. This flag MUST ONLY BE USED WHEN THE CONTACT THEMSELF is initiating the action (ie. on a subscriber based "re-optin") page.
Tom M
Group Product Manager – Content Editing
Constant Contact
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured