Solved

activities search doesn't show system/Email


Userlevel 3
Badge +4

If i use this api:

https://developer.copper.com/activities/list-activities-search.html

with activity_types = None, then i get a list of all activities **except** category=system, id=6 (Email).

If i run it with activity_types = [ {“id”: 6, “category”: “system” } ], I get the email activities.

Why? This is making sync’ing very difficult.

 

icon

Best answer by Michelle from Copper 11 July 2022, 15:07

View original

2 replies

Userlevel 7
Badge +7

Hi @donbowman, thanks for posting! I’m going to put you in touch with our technical team. They’ll be able to help you out more closely. You’ll received an email from the system and then an email from one of our product experts.

Userlevel 3
Badge +4

to close this off.

Copper does not operate as documented.

https://developer.copper.com/activities/list-activities-search.html shows you can list activities, with an optional filter.

However, email behaves differently than the other activities. It will be silently dropped from your result set.

You get part of the email activity by re-running the same API calll but explictily setting the activity_types field (and setting it to only email type).

There does not appear to be a work around for this.  What i ended up doing was:

types = get_activity_types

for type in types:

  get_activities(activity_types = type, ...)

 

e.g. emitting multiple API calls, and then merging client-side. Slower, but it works.

 

I hope this saves someone else some time, this cost me quite a bit to debug.

 

Reply