jmckay123 Absent Member.
Absent Member.
233 views

Adding members to a group

I have created a new group in Frequent Contacts, using createItemRequest. This works and I retrieve the id of
the new group. Now, to add members, I gather I am supposed to use addMembersRequest. And that I have to
supply the id of an already existing address book entry, I just can't add members on the fly. So I do that, and
get the id of the various entries I have created. So now my addMembersRequest code is shown below. For this
call, the return http code is 200, and there are no errors in the output response. The result, unfortunately, is that
no members actually get added to the group when I look at it with the GW client. I went back and verified that
the container I supply actually matches the id of the new group, and that the id of each member matches what
is shown in the GW client. It all looks perfect, so what am I doing wrong?

-------------------------
<m:addMembersRequest>
<container>5CBC8C99.Transend.PO.104.16E7773.1.30.1@58:5C790123.Transend.PO.104.16E7773.1.1.1@53</container>
<members>
<member>
<id>
5CBC8C99.Transend.PO.104.16E7773.1.31.1@56:5C790123.Transend.PO.104.16E7773.1.1.1@53
</id>
<distType>TO</distType>
</member>
<member>
<id>
5CBC8C9A.Transend.PO.104.16E7773.1.32.1@56:5C790123.Transend.PO.104.16E7773.1.1.1@53
</id>
<distType>TO</distType>
</member>
<member>
<id>
5CBC8C9A.Transend.PO.104.16E7773.1.33.1@56:5C790123.Transend.PO.104.16E7773.1.1.1@53
</id>
<distType>TO</distType>
</member>
</members>
</m:addMembersRequest>
Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Adding members to a group

I'm not sure why your request is not working. It may be your namespace
prefixes again.
I'm able to create a group (with members).
I can add a member to a group using modifyItemRequest.
I can add members using addMembersRequest.
I believe the only difference with addMembersRequest, is that if you
reference items
in the system address book, it will create a PAB item in the PAB container
and add
that to the PAB group.

<ns3:createItemRequest
xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:ns3="http://schemas.novell.com/2005/01/GroupWise/methods">
<ns3:item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="Group">
<name>My Group</name>
<container>47BC3C5A.domain.PO1.104.1776172.1.3B86.1@53</container>
<members>
<member>

<id>52650A95.domain.PO1.104.1776172.1.3F81.1@56:47BC3C5A.domain.PO1.104.1776
172.1.3B86.1@53</id>
<distType>TO</distType>
</member>
<member>

<id>52650A8C.domain.PO1.104.1776172.1.3F80.1@56:47BC3C5A.domain.PO1.104.1776
172.1.3B86.1@53</id>
<distType>CC</distType>
</member>
<member>

<id>498140B9.domain.PO1.104.1776172.1.3C4D.1@56:47BC3C5A.domain.PO1.104.1776
172.1.3B86.1@53</id>
<distType>BC</distType>
</member>
</members>
</ns3:item>
</ns3:createItemRequest>

<ns3:modifyItemRequest
xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:ns2="http://schemas.novell.com/2005/01/GroupWise/events">

<ns3:id>5CBDB8B3.domain.PO1.104.1776172.1.4312.1@58:47BC3C5A.domain.PO1.104.
1776172.1.3B86.1@53</ns3:id>
<ns3:updates>
<add xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="Group">
<members>
<member>

<id>52650A8C.domain.PO1.104.1776172.1.3F80.1@56:47BC3C5A.domain.PO1.104.1776
172.1.3B86.1@53</id>
</member>
</members>
</add>
</ns3:updates>
</ns3:modifyItemRequest>

<ns2:addMembersRequest
xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:ns2="http://schemas.novell.com/2005/01/GroupWise/methods">

<ns2:container>5CBDBB7F.domain.PO1.104.1776172.1.4313.1@58:47BC3C5A.domain.P
O1.104.1776172.1.3B86.1@53</ns2:container>
<ns2:members>
<member>

<id>52650A8C.domain.PO1.104.1776172.1.3F80.1@56:47BC3C5A.domain.PO1.104.1776
172.1.3B86.1@53</id>
<distType>CC</distType>
</member>
</ns2:members>
</ns2:addMembersRequest>

Preston






0 Likes
jmckay123 Absent Member.
Absent Member.

Re: Adding members to a group

Thanks, putting the member ids inside the createItemRequest did work, so that's good enough.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.