The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

Jason's avatar
Jason
New Contributor II
4 years ago
Solved

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
    4 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()