Forum Discussion

Jason's avatar
Jason
New Contributor II
3 years ago

Adding unique records to a Member List

Hello- I have created a business rule that uses a buffer to bring back UD1 members that have a value against them, then they are added to a list like this: myList.Add(api.Members.GetMember(DimTyp...
  • Jason's avatar
    3 years ago

    I got this working, the fix was simple.  

    On the sort line just add a Distinct()

    The code becomes:

    objMembers = (From member In myList Order By Member.Name Ascending Select Member).Distinct().ToList()