GetDataBufferDataCells with no data
Hi Everyone. I have the following section of code. 'Search for values for the DataBufferCellPK, they are not empty. Dim dbcpk As New DataBufferCellPk( mbrRefIdAcc, mbrRefIdFlow, intOriginId, mbrRefIdIC, mbrRefIdUd1, mbrRefIdUd2, mbrRefIdUd3, mbrRefIdUd4, mbrRefIdUd5, mbrRefIdUd6, mbrRefIdUd7, mbrRefIdUd8 ) 'BRApi.ErrorLog.LogMessage(si, $"values of DataBufferCellPk: MbrRefIdAcc: {mbrRefIdAcc}, MbrRefIdFlow: {mbrRefIdFlow}, IntOriginId: {intOriginId}, MbrRefIdIC: {mbrRefIdIC}, MbrRefIdUd1: {mbrRefIdUd1}, MbrRefIdUd2: {mbrRefIdUd2}, MbrRefIdUd3: {mbrRefIdUd3}, MbrRefIdUd4: {mbrRefIdUd4}, MbrRefIdUd5: {mbrRefIdUd5}, MbrRefIdUd6: {mbrRefIdUd6}, MbrRefIdUd7: {mbrRefIdUd7}, MbrRefIdUd8: {mbrRefIdUd8}") 'BRApi.ErrorLog.LogMessage(si, "Parameters bufferdatacell: " & dupk.ToString & " * " & intViewId) Using dbConnFW As DBConnInfo = BRApi.Database.CreateFrameworkDbConnInfo(si) Using dbConnApp As DBConnInfo = BRApi.Database.CreateApplicationDbConnInfo(si) listDc = BRApi.Finance.Data.GetDataBufferDataCells(dbConnFW, dbConnApp, dupk, intViewId, dbcpk, False, True) End Using End Using BRApi.ErrorLog.LogMessage(si, $"listDc values json: {JsonConvert.SerializeObject(listDc, Formatting.Indented)}") Dim intTotDc As Int64 = listDc.Count Dim k As Int64 = 0 For i = listDc.Count - 1 To 0 Step -1 Dim dc As DataCell = listDc(i) If (dc.CellAmount = Decimal.Zero) OrElse Not (1 = 1 _ And listIntAcc.Contains(dc.DataCellPk.AccountId) _ And listIntFlow.Contains(dc.DataCellPk.FlowId) _ And listIntIC.Contains(dc.DataCellPk.ICId) _ And listIntUd1.Contains(dc.DataCellPk.UD1Id) _ And listIntUd2.Contains(dc.DataCellPk.UD2Id) _ And listIntUd3.Contains(dc.DataCellPk.UD3Id) _ And listIntUd4.Contains(dc.DataCellPk.UD4Id) _ And listIntUd5.Contains(dc.DataCellPk.UD5Id) _ And listIntUd6.Contains(dc.DataCellPk.UD6Id) _ And listIntUd7.Contains(dc.DataCellPk.UD7Id) _ And listIntUd8.Contains(dc.DataCellPk.UD8Id)) Then strLog.AppendLine($"{strBRName} - Removing {Me.PrintDataCell(si, dc)}") listDc.RemoveAt(i) k += 1 End If Next It doesn't give me any results, so I wanted to know where I can add the information to get results.Solved5.8KViews0likes20CommentsE-mail notification for "Set IC Transaction Status"
Hi, I am looking for a Business Rule (DataQualityEventhandler) to send e-mail notifications when "Set IC Transaction Status" is used. I know how to send e-mail when the "Set IC Transaction Status" is used. The challenge is to get the comment and other information from the ICMatchStatus table and to pick up the e-mail addresses to send to. So, I want to check for the entity in the ICMatchStatus table and all users with access to that entity should then receive the e-mail notification. I want to use the e-mail on the users to create the e-mail list for sending e-mails. It's more or less the same as with the journals. If a journal is for example created, then an e-mail is sent to the users that can approve the journal. The e-mail will then also contain the journal they are suppose to approve and/or post. This I have, but the ICTransactionStatus is a bit Regards, Peter5KViews0likes9CommentsUpdating scenario member through an extensibility rule
Hi All, Need some help in updating properties of scenario member through an extensibility rule. 'Workflow Time scenarioProperties.WorkflowTime.SetStoredValue(BRApi.Finance.Members.GetMemberId(si, DimType.Time.Id, objUtil.GetCycleFirstQuarter(si, api))) 'Workflow Start Time scenarioProperties.WorkflowStartTime.SetStoredValue(BRApi.Finance.Members.GetMemberId(si, DimType.Time.Id, objUtil.GetWorkflowStartTimeForScenario(si, api))) 'Workflow End Time scenarioProperties.WorkflowEndTime.SetStoredValue(BRApi.Finance.Members.GetMemberId(si, DimType.Time.Id, objUtil.GetWorkflowEndTimeForScenario(si, api))) The rule compiles fine however fails on execution. Error message received: Error updating member. Invalid parameter 'WorkflowTime'. Would someone please guide me with the correct way to achieve this?Solved4.7KViews2likes9CommentsUpload or Download Files using API
We are working on uploading and downloading files onto OneStream FileExplorer. It is possible to fetch the encoded file from the FileContents using the SQL Query over the REST API. Similarly, is it possible to upload the data to the FileExplorer using the REST API? Anyideaswould be much appreciated. Regards, Anusha4.6KViews0likes6CommentsSolution to Update Task Scheduler Start Times to Account for Daylight Savings
Hi, This time of year we have the common maintenance point regarding needing to update task scheduler start times to account for daylight savings. It is expected for the platform to not automatically update the task start times to account for daylight savings, thus, this becomes a maintenance point for those companies in states/countries that utilize daylight savings. Until this feature perhaps one day becomes available in the platform, we have a custom solution that will make the maintenance point of this easier for OS administrators. You can upload the two files attached in the zip file which will result in uploading an Extender business rule titled "Update_TaskScheduler_StartTimes" and a Data Management job called "Update Task Start Time Daylight Savings". To use the solution, navigate to the Data Mgmt page and look for the group titled "Task Scheduler Maintenance". Here you will find the Data Mgmt sequence and step you uploaded. Navigate to the DM step and utilize the Hour Adjustment parameter to push the task start times backwards (-1) or forward (1) one hour. Once you are happy with the Data Mgmt step setting, go ahead and run the Update Task Start Time Daylight Savings sequence. The sequence will update the task start time for all tasks in the application. We recommend testing this in a Development application first. Please perform this at your own risk in a Production application.4.5KViews12likes18CommentsIs it possible to prevent a force consolidation to run on locked period ?
Hi, Without entering into the discussion of whether this is a best practice or not. During some HFM replacement, we have seen occasionally that request being raised. So, is it possible to prevent a force consolidation to run on locked entity / period whilst making it run for the unlocked ones ? AymarSolved4.4KViews0likes1CommentExtender Auto Create Metadata from data warehouse.
Hi, Has anyone updated and added new member inmetadata by using extender rule by picking the member information from SQL table or any other data warehouse? Table contains most of the information related member in OneStream and their member properties. If anyone has done similar kind of implementation, please let me know. Thanks.Solved4.3KViews0likes10CommentsUpdating UD4 Default value in UD1 using extensibility rule
Hello, In another post user KarlT suggested the use of the UD defaults available for UD1. I manually updated members, and the functionality is exactly what I need. I need to update the field through a data load. UD1 members (Projects), will always have a single UD4 value. In the current TransformationEventHandler rule I am updating text fields in my UD1 members. I thought I could just duplicate the code an update UD4Default. However it is not working. I know it is trying to update the UD4Default value, because if I manually assign a value, it gets cleared when I load. My 2nd thought was that since it is a member selection and not a text field I needed the member id. Which is my attempt below. Any thoughts or suggestion? 'A3 is the department (UD4) example 189 'UD1Attr1 is the project (UD1) example 14123 'D1_Defaults Members Dim DeptId As Integer = BRApi.Finance.Members.GetMemberId(si,dimtypeid.UD4, A3) Dim UD1Dept As MemberInfo = BRApi.Finance.Members.GetMemberInfo(si, dimtypeid.UD1, UD1Attr1, True) Dim UD1DeptProperty As New VaryingMemberPropertyItem(cubetypeid.Unknown, scenariotypeid.Unknown, dimtypeid.Unknown, False, PropStorageType.TextType, 0, DeptId) UD1Dept.GetUDProperties.UD4Default.SetStoredPropertyItem(UD1DeptProperty) brapi.Finance.MemberAdmin.SaveMemberInfo(si, UD1Dept, False, True, False, False)Solved4.2KViews0likes5Comments