Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ja-frog opened this issue Mar 20, 2018 · 2 comments
Open

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

ja-frog opened this issue Mar 20, 2018 · 2 comments

Comments

@ja-frog
Copy link

ja-frog commented Mar 20, 2018

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?

@dawiehyman
Copy link

I've seen the same issue with fetch_all() .. even from the members entity, it seems to not paginate.

@dannybrown37
Copy link

Yes, pagination still does not appear to be happening. I can retrieve single members using the sample code in the documentation, but trying to do a fetch_all() is just hanging forever. More documentation and examples could really help this repo shine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants