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