I would like to fetch activities by contact_id
and only return non-deleted activities (or, failing that, return them all but filter them afterwards by is_deleted
). But I find that passing is is_deleted=0
does not make any difference and the is_deleted
flag is not present on the returned data.
I guess this is a bug in the API? Is it known? I searched Jira but couldn't see it. If not I will file it and look at submitting a patch.
I can think of one workaround which is to fetch all the activity ids for the contact and then loop through them fetching each activity (since in
does not seem to work with activity) by activity_id
and is_deleted
. But that could be a lot of api calls and means dealing with more async stuff if using JS. Anyone know of a cleaner workaround?