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

JoBo's avatar
JoBo
New Contributor II
2 years ago
Solved

Memberlist based on Datatable returns nothing

Hi guru's  I have created some memberlist logic which should retrieve a list of entities from a datatable. So far so good, the code seems to work (logging returns my expected entities) but the retu...
  • MarcusH's avatar
    2 years ago

    I think the problem is that it does not know what dimension the member info list is for. I haven't tested this but it should put you on the right path:

    Dim unId As String = row("UN_ID").ToString()
    Dim EntMemID As Integer = api.Members.GetMemberId(DimType.Entity.Id, unID)
    Dim memInfo As MemberInfo = New MemberInfo(api.Members.GetMember(DimType.Entity.Id, EntMemID))
    listOfMemberInfos.Add(memInfo)