MZ
3 years agoNew Contributor III
How to change scenario ReadWriteDataGroup through API
We are trying to temporarily disable the Write access on a scenario to Everyone during a long DM sequence. We were able to find the ManageDataGroup under Scenario Properties, however, we could not fi...
- 3 years ago
RWDataGroup is not a variable property, but rather an actual property of the member. To edit it, you need to create a WritableMember object and save that.
' retrieve your original scenario somehow, this comes from the current Workflow Dim myScen As Member = BRApi.Finance.Members.GetMember(si, dimtype.Scenario.Id, si.WorkflowClusterPk.ScenarioKey) ' set up a writable object Dim newScen As New WritableMember(myscen) ' change properties, including ReadWriteDataGroup newScen.Name = "ABC" ' when done, save it back. brapi.Finance.MemberAdmin.SaveMemberInfo(si, True, newScen, False, Nothing, False, Nothing, False)