BUG: GetSingleSubscriber doesn't always return custom fields.

We're using the API to manage all user subscriptions.

There is a "Brand" custom field, which is a multiple select value.

When user subscribes to a new brand, we use Subscribers.GetSingleSubscriber to get the current information, and merge it with the new selections.

However, sometimes Subscribers.GetSingleSubscriber returns the "Brand" as empty, even though a user has several brands selected (verified), which causes the update to wipe out all their previous selections, and only save the new brand.

I would love to provide any assistance to CM developers in debugging this, as this is a huge priority for us.

Thanks!

Mathew Mathew, 5 years ago

Hi,

Thanks for the report - can you please contact us via support(at)campaignmonitor(dot)com with more details so our developers can investigate that with you?


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
phpdiva, 5 years ago

I will send the email with the examples, but I think I got to the bottom of this. Sometimes the XML format returned is different - missing the anyType tax. This was also brought up in this ticket: http://www.campaignmonitor.com/forums/viewtopic.php?id=4407 but no response.

EXAMPLE (same request to GetSingleSubscriber):

3:16PM:

Array
(
   [anyType] => Array
       (
           [EmailAddress] => xxx@gmail.com
           [Name] => xxx xxx 
           [Date] => 2010-07-20 12:57:00
           [State] => Active
           [CustomFields] => Array
               (
                   [SubscriberCustomField] => Array
                       (
                           [0] => Array
                               (
                                   [Key] => BirthDate
                                   [Value] => xxx
                               )

...etc.

3:17PM:

Array
(
   [EmailAddress] => xxx@gmail.com
   [Name] => xxx xxx
   [Date] => 2010-07-20 12:57:00
   [State] => Active
   [CustomFields] => Array
       (
           [SubscriberCustomField] => Array
               (
                   [0] => Array
                       (
                           [Key] => BirthDate
                           [Value] => xxx
                       )

...etc.

Notice the missing anyType tag in the second response.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098