Discuss formulas and business rules for your application.
Recently active
Hello - I need to get the most recent Property change on our UD1's. I'm assuming I need to get the AuditTime from the AuditMemberProperty table. Would I use this function? If so, how do I find the textPropertyIndex value? BRApi.Finance.UD.Text(si, dimTypeId, memberId, textPropertyIndex, varyByScenarioTypeId, varyByTimeId) Your help is much appreciated! Thank you!
Hello,Would you know how I can access all Business Rule functions/ syntax etc in a file or where they are stored in OneStream? Basically, I want to have a list of all functions/ syntax.Thanks,Sid
I am trying to copy the data from the Adjustment data. api.Data.Calculate("F#EndBalJE:O#AdjInput = RemoveZeros(F#EndBal:O#AdjInput:T#PovPrior1)","A#BS.Base")As per My rule the data will be copied for C#members that does not require parent to be specified.Example : C#Local and C#Share Is there any way I can copy the data at C#OwnerPostAdj Data As well using api.data.CalculateWhat changes I need to make in above code . ?Regards,Nik
Hi Community Is there any way that we can do to display currencies based on our entity through extensibility rules
Hello, I need to extract all the UD1 Default values and am stuck on statements 3 and 4 in the example below. Example using cost center 1100: Dim strUD1Member As String = "1100" 1-Dim UD1Member As Member = BRApi.Finance.Members.GetMember(si, dimtypeId.UD1, strUD1Member)2-Dim UD1MemberInfo As MemberInfo = BRApi.Finance.Members.GetMemberInfo(si, DimTypeid.UD1, UD1Member.Name, True) 3-Dim UD1Properties As UDVMProperties = UD1MemberInfo.GetUDProperties() ? 4- ? I appreciate any help you can give me. Thanks!
My client has member property Text1 in UD1 as a second description or alias, he wants to display Text1 instead of name or description. I tried with CV Function "u1#top.descendants.where(Text1 <> '')", but It is not working because keep appearing name or description. Any recommendation with function CV or XFBR please? Thanks.
I have a forecast scenario S#AugFcst_7_5 with the following properties:WF Time = 2023M7WF start time = 2023M1WF end time = 2024M12# no input periods = 7I have a Finance business rule function that is being initiated using a dashboard button in the workflow. The dashboard button calls DM Sequence/step where data units are defined as WFScenario and T#root.WFTimePeriods, business rule = FPA, function name = ttmaverageIn the function (ttmaverage) I am limiting the calculation to only the base periods of 2024 and I want it to calculate V#Periodic by looking at S#Actual, V#Trailing12MonthAvg, T#2023M6I receive the following error when executing it:I believe the error is because I want it to calculate off S#Actual, T#2023M6, V#Trailing12MonthAvg and that includes time periods that fall outside the range of my WF scenario AugFcst_7_5.I tested this by changing the formula to look at S#Actual, T#2023M6, V#Trailing6MonthAvg and the calculation works but obviously does not give me what I nee
Hello, I am wondering if anyone would be will to help me with a business rule for our people planning. I am not sure how to read these, but I am trying to determine where in the rule it's telling which periods to calculate. For some reason it's not calculating all the periods. If anyone could help, please send me a message and let me know if you could point me in the right direction.
Hi - I am trying to execute the below code but it is not taking the prior month actual data. Could you please let me know what am doing wrong? It is copying only the current month. Dim SrcDataBuffer As DataBuffer = api.Data.GetDataBufferUsingFormula("FilterMembers(V#YTD:F#EndBalInput:S#Actual:T#2026M11,[A#[BalanceSheet].Base],[U1#[Total_CostCenter].Base])") srcdataBuffer.LogDataBuffer(api, "Results",10) Dim Acct As String = String.Empty Dim UD1 As String = String.Empty Dim UD2 As String = String.Empty Dim UD3 As String = String.Empty Dim UD4 As String = String.Empty Dim UD5 As String = String.Empty Dim UD6 As String = String.Empty Dim UD7 As String = String.Empty Dim UD8 As String = String.Empty Dim f As String = String.Empty Dim Inc As String = String.Empty Dim Org As String = String.Empty Dim ResultDb As New DataBuffer For Each Cell As DataBufferCell In SrcDataBuffer.DataBuf
Happy Wednesday, I'm trying to automate our account recs module. I have been successful in automating the data load. But I'm trying to figure how to call that "process" within my extensibility rule. I tried to trace back the rule that executes the process recons. What I found was a DB Extender rule (RCM_SolutionHelper), that is been referenced within a button component. Wondering if there is a way to call that function. Would appreciate any ideas. Best, Mustafa A
Hi All, I need some assistance in printing the to dimensionally get the parent name of the Child member. Code populating the base member into the table is completed without any error. Can someone please help. Thanks
Hey, I am working on rule to allocate cost to product. It worked when one side of buffer is unbalanced but I do have both. Here is the example. Not sure how can we do? My rate are by Product and NO COP while Cost is by Country of production, by account, by function. I want to store cost where we Cost are and allocate to product.
Hi, is there an BrApi command that returns the Application Currencies, ideally as a list of strings? I would like to use the output, i.e. the list of currencies, in an Extender business rule, where I need to loop through them. Thank you
I keep getting this error I checked the time and scenarios rules it looks right.
Hello community, We have a Custom Calculate DM job that clears data by account and flow via parameter selection that works well. Our client wants to know if it is possible to select multiple base accounts at once to clear the data. The parameter options such as member filter does not allow selecting more than one account so I'm hoping, if this is possible, that maybe someone has used multiple NameValuePairs to achieve this via two parameters of the same dimension somehow. Throwing ideas that may or may not be good out here. Thanks in advance!
Hello, I have created an extensibility rule to extract values from the FileBytes column in the XFW_UTM_SupportDoc table, then convert the FileBytes to a file and save in the file share. See below for code snippet: 'Execute query and save attachment to file share folder Using dt As DataTable = BRAPi.Database.ExecuteSql(dbConnApp, fileBytesQuery, True) If Not dt Is Nothing Then For Each dr As DataRow In dt.Rows 'Process rows Dim fileBytesValue As Byte() = dr("FileBytes") Dim fileNameValue = dr("FileName") Dim taskNameValue = dr("TaskName") Dim fullFileName As String = fileNameValue 'Create file in file share, and store folder name Dim fileInfo As XFFileInfo = New XFFileInfo(FileSystemLocation.FileShare, fullFileName.toString) fileInfo.FolderFullName = "Applications/" & applicationName & "/Batch/Harvest/TaskManager_Exports" 'Convert fileBytes to file, and save in folder path Dim fileFile As XFFile = New XFFile(fi
We are using an Extensibility Rule to import data from a database using a Stored Procedure (SP) within a do...while loop that modifies the SP parameters. The current implementation works as expected, but our customer has requested us to modify the Business Rule so it executes the SP with all the loop combinations, even if an error occurs during a single SP execution. I attempted to implement this using nested Try...Catch blocks, so the error in the inner block does not get to the outer one. Unfortunately, it did not resolve the issue with this code structure: Try (previous code, including do) Try BRApi.Database.ExecuteSql(...) Catch ex As Exception log.AppendLine(...) End Try (more code, including while) Catch (general error handling) End Try The BR still terminates when an SP error occurs: am I missing something? is there a way to prevent the BR to stop when an error occurs? Regards,
Hi all, Does anyone know how to call a dynamic member list inside a member formula (well, I need it for a dynamicCalc but it can be generalized). I can call the member list in a CV with the call: I#ICEntities.CustomMemberList(BRName= BRName, MemberListName= MemberListName, Param1 = Param1, Param2 = Param2, Param3 = Param3) In the Design and Reference (Examples of Key Functions in Use (onestream.com)), we find an example of a static member list. Thank you for the help. Regards
I have an Assembly which is compiling without errors. The Assembly type is DashboardStringFunction. I called the assembly from DM step in the Time Filter: XFBR(Worspace.PS_Allocation_Rules.PS_Allocation.PS_XFBR_Allocation, MultiSelectTime, Allocation_MonthsToCopy=[|!Allocation_MonthsToCopy!|]) When I execute the step, I am getting below error: Error processing Data Management Step 'Allocations_AllAccountBkt_Step'. Invalid parameter. Time Filter, #ERROR: XFBR[Worspace.PS_Allocation_Rules.PS_Allocation.PS_XFBR_Allocation, MultiSelectTime, Allocation_MonthsToCopy=[2023]]. I am calling the function as per the reference material: XFBR(Workspace.WorkspaceName.AssemblyName.FileName, FunctionName) Appreciate your inputs
Dear OS Experts, really appreciate your support on this, I have written a business rule for some generic calculations based on the calender months. the rule is working for USD currency but it not working for CAD. Any suggestions on this code corrections? Namespace OneStream.BusinessRule.Finance.Temp234Calc Public Class MainClass #Region "Main - xxx Calculation" Public Function Main(ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal api As FinanceRulesApi, ByVal args As FinanceRulesArgs) As Object Try Dim timePeriod As String = api.Pov.Time.Name Dim entityCode As String = api.Pov.Entity.Name Dim monthNumber As SByte = api.Time.GetPeriodNumFromId Dim yearNumber As Short = TimeDimHelper.GetSubComponentsFromName(timePeriod).Year Dim currScenario As String = api.Pov.Scenario.Name Dim currCons As ViewMember = api.Scenario.GetConsolidationView() Dim localCurrency As String = api.pov.Cons.Name Dim conversionMonth As String = args.CustomCalculateA
Hello, Im tryin to derive few rows like this:E#[*]=HQ_MANTUGR:A#[R69204ALLOC]=R79204ALLOC:U7#[MREA01]=AREA01:U8#[EUR]=Noneis there any otpion i can use to tell the system to replace only the "6" in the account name R69204ALLOC by 7 to get R79204ALLOC and the "M" in the UD7 Name by A to get AREA01 ? if this requires a business rule and you have one exemple please share it with me 🙂 thanks for you help
So this seems like it should be easy, and still may be, but it has me stumpt. If I know the name of a cube, say "Houston" from Golftream, how can I determine within a business rule what Attribute and Value dimensions that cube has active for its various scenario types? So in this example, for the Actual sceanrio type, Houston only has Attribute1 active with an alias of "InvoiceNo". I can not figure out where to find this information. I looked at both the Cube and CubeInfo classes but nothing jumps out at me. It seems like CubeInfo has everything else but this information so maybe it is there but just not sure what property is is buried in. Has anyone had to get this information for a business rule before?
Can you please provide a snippet of Finance Business Rule code showing allocation of data based on a driver.
Is there a way to download OneStream Libraries to GitHub? We need to use gitHub for version controlling of the business rules.
We can write a business rule to export data from the OneStream backend/custom tables, but is there an out of the box solution to do so? The Data Table Manager marketplace solution also has the option to export data, but only up to 5000 records.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.