Updating NAB groups with an agent outside of the NAB does not allow mail to be routed to those groups

We have written the below LS code to update specific groups in the NAB. If we update the group manually, mail is routed w/o errors. If the agent is run, the members are updated but mail is not being routed. I have also listed the differences in group attributes.

Agent:

'----------------------------------------------------------------------------------------------------------

'Step 3: Update the group membership in the NAB

'----------------------------------------------------------------------------------------------------------

'Call LogAction("New Group members - " & Chr(10) & nabOldItem.Text)

Call LogAction(sGroupName & " - updating " & Cstr(Ubound(nabOldItem.Values)) & " members..")	

Call nabDoc.RemoveItem("Members")	

Call nabItem.CopyItemToDocument(nabDoc,"Members")

Call nabDoc.Save(True, True)

Call LogAction(sGroupName & " - successfully updated the group.")

Exit Sub

Differences:

Manually edited and saved:

$Revisions: has additional “or Range”

GroupTitle: Text, 1b, 1, 0, summary “1”

GroupType: Text, 1b, 1, 0, summary “1”

Members: Text List, 5175b, 116, 0, summary names (then lists all the names)

Agent edited and saved:

$Revisions: has no additional “or Range” only Time/Date

GroupTitle: Text, 1b, 1, 0, summary “0”

GroupType: Text, 1b, 1, 0, summary “0”

Members: Text List, 5175b, 116, 0, does not have “summary names”, only lists all the names

Subject: Updating NAB groups with an agent outside of the NAB does not allow mail to be routed to those groups.

Look into Group Type … Groups can be Access only, Mail only, or both, and I think it’s Group Type that detirmines that.

Subject: Updating NAB groups with an agent outside of the NAB does not allow mail to be routed to those groups.

Here’s your issue:“Members: Text List, 5175b, 116, 0, does not have “summary names”, only lists all the names”

If it’s not a Summary field, it won’t show in views, and cannot be used for mail routing.

Try this. Before you do the nabItem.CopyItemToDocument:

nabItem.IsSummary = True

Subject: RE: Updating NAB groups with an agent outside of the NAB does not allow mail to be routed to those groups.

Stephen,You nailed it! This resolved my issue. More investigation was done and I could see in the $VIMGroups view that the members column was blank but when you open the group, the entries are there. After I inserted your code, the members show up properly in the view.

Thank!