09-21-2023 11:06 PM
Hi - Has anyone created entity readdatagroup using the below function
Dim objGroup As Group = Group.CreateEntityReadDataGroup()
Any help would be appreciated
Solved! Go to Solution.
09-25-2023 09:12 AM - last edited on 09-25-2023 09:32 AM by JackLacava
I found the solution and the below is the code sample for updating the Entity Security Group. The below update the Display Group for an entity
'Assign the Display Group
Dim objWritableMember As WritableMember = BRApi.Finance.Members.ReadWritableMemberNoCache(si, dimTypeId.Entity, EntityName)
objWritableMember.ReadDataGroupUniqueID2 = BRApi.Security.Admin.GetGroup(si,ReadDataGroup2).Group.UniqueID
BRapi.Finance.MemberAdmin.SaveMemberInfo(si,True,objWritableMember,False,Nothing,False,Nothing,TriStateBool.FalseValue)
09-25-2023 04:29 AM
Some of the APIs are for internal use.
What are you trying to do, exactly? There is probably an easier way than rummaging through unknown functions.
09-25-2023 09:12 AM - last edited on 09-25-2023 09:32 AM by JackLacava
I found the solution and the below is the code sample for updating the Entity Security Group. The below update the Display Group for an entity
'Assign the Display Group
Dim objWritableMember As WritableMember = BRApi.Finance.Members.ReadWritableMemberNoCache(si, dimTypeId.Entity, EntityName)
objWritableMember.ReadDataGroupUniqueID2 = BRApi.Security.Admin.GetGroup(si,ReadDataGroup2).Group.UniqueID
BRapi.Finance.MemberAdmin.SaveMemberInfo(si,True,objWritableMember,False,Nothing,False,Nothing,TriStateBool.FalseValue)