API problem - adding members to a group

  • 1
  • Problem
  • Updated 4 years ago
  • In Progress
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: resolved

I'm running into an issue using the web API to update group membership.

What I'm trying to do is delete all members in a group and then repopulate the group with a new list of members.  This usually works, but sometimes after adding the new members, the group reports 0 members, despite the web call succeeding.  In addition, when I open the group in the web admin interface I can see the first 5 members I added, but no pagination, and the count shows zero.  Its almost like the members were added but the count wasn't updated.

Any ideas?
Photo of James Crowley

James Crowley

  • 3 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Paul Zimmerman-Clayton

Paul Zimmerman-Clayton, Official Rep

  • 400 Posts
  • 34 Reply Likes
Hey James, thanks for letting us know about this. This sounds like the behavior of a recently created group; often with new groups, it takes a little while for the counts to update and all of the members to show up. Are you finding that if you give those groups a few minutes to load, they update? You might need to log in and view the group in the audience to check on this. 

If this is the case, it's only an error in the reporting of the group count, and the group is in fact populated with the new members as soon as you can see the first five in the account. You should be able to send as soon as members are added, even though the counts might look off or report as 0. I'll also let our developers know you're running into this, so when we get a fix out, I'll update you here!
Photo of James Crowley

James Crowley

  • 3 Posts
  • 0 Reply Likes
Thanks Paul,

The groups themselves have existed for a couple weeks.  When I see this behavior, the group member count remains at zero until I repopulate the group successfully (I've waited for more than a day and the count does not update).

Thanks for passing this along to your developers, and please keep me updated.
Photo of Laura Dickerson

Laura Dickerson, Official Rep

  • 778 Posts
  • 64 Reply Likes
Hi James,

Laura here, stepping in for Paul while he is away. Which sub account are you working in? I can try to get it to update for you. 
Photo of James Crowley

James Crowley

  • 3 Posts
  • 0 Reply Likes
Hi Laura,

Its not so much that we would like it updated once, its that this is part of a nightly sync process from our internal data system to emma, so we need it to update on a consistent basis.  I would say on average we get a 0 count in one to two groups per day, and the groups that it affects seem to be random (i.e., they change every day).

If you think it would be beneficial to look at the specific sub account we are using please get in touch with me via direct email, as I'd rather not discuss our specific configuration in a public forum.

Thanks!
Photo of Restaurant Equippers

Restaurant Equippers

  • 27 Posts
  • 9 Reply Likes
This may not be totally on topic, but can the API add new emails to my email file? (If I collected them from another source, such as they ordered from us in the store?
Thanks!
Photo of Paul Zimmerman-Clayton

Paul Zimmerman-Clayton, Official Rep

  • 400 Posts
  • 34 Reply Likes
Hey there! Thanks for posting! I'm not sure I understand what you're looking to do. If you've got another database or CRM, it's possible to connect with Emma via our open API as long as the CRM also has an open API. Can you tell me a little bit more about what you're trying to achieve?

Let me know and I'll see what I can find out!