Lotus Script Trick: Remove The Duplicate Values From a Profile field in a Profile Document

The following function removes the duplicate values from a profile field, or any multi-value field (FieldName), in a profile document or a regular notes document. Function RemoveDuplicateValue(Source As NotesUiDocument, FieldName As String) Dim Indexresult As Variant Dim UniqueArr As VariantIndexresult=Source.Document.GetItemValue(FieldName) ”Get the field values into arrayUniqueArr= Arrayunique(Indexresult,1) ”Copy array but with unique items only. Call […]

Continue Reading