FX Rates automation

pranav46
New Contributor II

New to OS and I have requirement to automate fx rates in OS. Is it possible?

We have FX repository in Oracle so, thinking to pull from there but not sure how can we load to central FX repository.

 

 

2 ACCEPTED SOLUTIONS

tschilling
New Contributor II

Couple different ways to do it, but always recommend using the BRApi functions instead of writing directly to the database directly.  There is a table called FXrate that the application uses to store the information for FXRates.  You can use the SetFxRate function to insert/update this table with the values from your ERP from a Connector Business Rule if you want to take that approach.

 

View solution in original post

Krishna
Valued Contributor

@pranav46 - See below is an example

if (rateType == "Average Rate")
									
								{
									FxRatePkUsingNames fxTargetRatePkUsingNames = new FxRatePkUsingNames("AverageRate", "2023M8", tocurrency, basecurrency);
	       							FxRateUsingNames objFxTargetRateUsingNames = new FxRateUsingNames(fxTargetRatePkUsingNames, amount);
	    							XFResult objXFResult = BRApi.Finance.Data.SetFxRate(si, objFxTargetRateUsingNames);
								}
								

 

but it is C# but you can convert into VB DOt Net 

Thanks
Krishna

View solution in original post

4 REPLIES 4

tschilling
New Contributor II

Yes, it's possible depending on the requirements.  Are you looking to just load to the standard FX Cube in OneStream or something else?

pranav46
New Contributor II

Right now just in Standard fx cube.

tschilling
New Contributor II

Couple different ways to do it, but always recommend using the BRApi functions instead of writing directly to the database directly.  There is a table called FXrate that the application uses to store the information for FXRates.  You can use the SetFxRate function to insert/update this table with the values from your ERP from a Connector Business Rule if you want to take that approach.

 

Krishna
Valued Contributor

@pranav46 - See below is an example

if (rateType == "Average Rate")
									
								{
									FxRatePkUsingNames fxTargetRatePkUsingNames = new FxRatePkUsingNames("AverageRate", "2023M8", tocurrency, basecurrency);
	       							FxRateUsingNames objFxTargetRateUsingNames = new FxRateUsingNames(fxTargetRatePkUsingNames, amount);
	    							XFResult objXFResult = BRApi.Finance.Data.SetFxRate(si, objFxTargetRateUsingNames);
								}
								

 

but it is C# but you can convert into VB DOt Net 

Thanks
Krishna