Skip to main content
July 13, 2017
Question

API: Get Lead Activities => how accurate is "Remove from list" activity type?

Hi,

I'm trying to synchronize a static list by using "Get Lead Activities" with activityTypeIds 24 and 25 which are respectively "Add to List" and "Remove from List".

However, "Remove from List" isn't reporting anything. "Add to List" works always though.

Anyone using the same method to synchronize a static list?

Or anyone knows a better way to synchronize?

Thanks,

Hidenari

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

10 replies

July 14, 2017

I just found out that if you specify listId, it doesn't give you "Remove from List" activities.

But if you don't provide listId, the result contains all specified activities.

So, my workaround is just specify activityTypeIds=24,25 and get all the activities first.

Then, filter by the static listId for primaryAttributeValueId.

Then, check Add/Remove activities in order to find who gets added/removed.

If anyone knows a better way of syncing a static list, I'm still keen to know.

Translate
SanfordWhiteman
Level 10
July 14, 2017

Great discovery! And in retrospect, it makes sense in that the lead can't be in the list at the time you're querying, by definition.

Translate
July 14, 2017

Do you think it makes sense?

To me, it is opposite.

If you specify a listId, you get only "Add to List" activities, no "Remove from List" activities at all.

Since leads are in the static list, I think it should report "Remove from List" rather than "Add to List", no?

Maybe it's just me but I don't know. To me, it seems a bit strange.

Translate