function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nickname142857nickname142857 

multi currency question

Conversion rates are dated (i.e., rates are different on different dates), how does salesforce know which rate to use when it is doing the conversion on currency fields of a custom object? Does it always use createdDate?

BA_AdminBA_Admin

It depends on the conversion rate that is set in your company, if you go to manage currencies then it has listed all the conversion rates for the countries, so depending on that rate it takes the conversion rate, if you change the conversion rate then field takes that rate when you modify it...

nickname142857nickname142857

But there can be more than one rate for each currency. For example, you can have

USD -> CAD, 1/1/2010 - 1/15/2010 = 1.01

USD -> CAD, 1/16/2010 - 1/31/2010 = 1.02

 ...

So which one is used?

 

BA_AdminBA_Admin

If the Records are created btw 1/1/2010 - 1/15/2010 then it uses 1.01

If the Records are created btw 1/16/2010 - 1/31/2010 and later  then it uses 1.02