Skip to content

groups.members.fetch_all doesn't seem to retrieve all members #16

@oneaj

Description

@oneaj

We are currently using EmmaPython to keep MyEmma in sync with our CRM for our various audiences. The basic process is that it retrieves the set of addresses for a given audience from our CRM, retrieves the contacts currently in the audience from MyEmma, compares the two lists then adds, removes, and creates contacts as needed.

I noticed that it seemed to be adding the same contacts to some of these groups every day. When I debugged my code, I found that the number of contacts in the larger audiences(low thousands) was less than the total number of active contacts MyEmma reported through the web interface. I checked the count using len(group.members) after doing a fetch_all on it. As an example, one group has 3532 active contacts according to MyEmma but a len(group.members) returns only 3452.

Is something off with fetch_all, perhaps causing it to stop fetching before it has retrieved all of the contacts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions