Thanks for you reply. I think I didn't explain my question clearly. As you know, when use notify call, we can pass in groupID. My question is How do I create a groupID via JAVA SDK and associated this groupID with a package via JAVA SDK, then use notify to send the activate email to the member os of this group via JAVA SDK?
I see your concern. The "group" is an account level concept, that's why the group should have already been created in your account (through UI or code) before the package creation (guide here). After creation, you'll still need to use the above code to retrieve the generated group ID.
Reply to: How to create a groupID via JAVA SDK?
Thursday, June 11, 2020 at 12:39pmHi Wendy,
Group ID is in a format of 36 characters UUID, you can retrieve the list using below code:
List<Group> allGroups = esl.getGroupService().getMyGroups();
for ( Group group : allGroups ) {
System.out.println( group.getName() + " with email " + group.getEmail() + " and id " + group.getId() );
List<GroupMember> allMembers = esl.getGroupService().getGroupMembers( group.getId() );
for ( GroupMember member : allMembers ) {
System.out.println( member.getGroupMemberType().toString() + " " + member.getFirstName() + " " + member.getLastName() + " with email " + member.getEmail());
}
}
Duo
Reply to: Hi Wendy, Group ID is in…
Wednesday, June 17, 2020 at 11:09amHi Duo,
Thanks for you reply. I think I didn't explain my question clearly. As you know, when use notify call, we can pass in groupID. My question is How do I create a groupID via JAVA SDK and associated this groupID with a package via JAVA SDK, then use notify to send the activate email to the member os of this group via JAVA SDK?
Thanks
Wendy
Reply to: How to create a groupID via JAVA SDK?
Wednesday, June 17, 2020 at 03:19pmI see your concern. The "group" is an account level concept, that's why the group should have already been created in your account (through UI or code) before the package creation (guide here). After creation, you'll still need to use the above code to retrieve the generated group ID.
Duo
Reply to: I see your concern. The …
Wednesday, June 17, 2020 at 03:32pmHi Duo,
You mentioned that the group can be created through UI or code. What code? JAVA SDK? if yes, how to create group via JAVA SDK?
Thanks
Wendy
Reply to: Hi Duo, You mentioned that…
Wednesday, June 17, 2020 at 03:35pmHi Duo,
You actually include the above information in your previous email. I am ok with it. Thank you for your help.
Wendy