Re: An easy way to query newly unsubscribed leads

Anonymous
Not applicable

An easy way to query newly unsubscribed leads

Is there any way to query for newly unsubscribed leads from the API? We'd like to sync this to our CRM, which actually trickles down lead updates back down to Marketo. We'd like to ensure that we're not sending to these individuals and have the CRM override our Marketo settings.
Tags (1)
5 REPLIES 5
Anonymous
Not applicable

Re: An easy way to query newly unsubscribed leads

You could use the getLeadChanges method and filter for activityNameFilter == Unsubscribe Email
Anonymous
Not applicable

Re: An easy way to query newly unsubscribed leads

Is there a way to retrieve each lead's info as part of the response xml without having to query for it separately?
Anonymous
Not applicable

Re: An easy way to query newly unsubscribed leads

No, you'll first have to get the lead id and then call getLead() to retrieve the lead's info
Anonymous
Not applicable

Re: An easy way to query newly unsubscribed leads

When I used getLeadChanges with the activityNameFilter, should the activityTypes being returned should only be Unsubscribe Email? Right now, when we use this, it's returning other activityTypes and not Unsubscribe Email.
Anonymous
Not applicable

Re: An easy way to query newly unsubscribed leads

You may have run into a bug.  Please log an issue and have someone in our support team help you.