2 件の回答
Hi Sara, Few things to note about DatedConversionRate:
- Its only available if advanced currency management is enabled.
- Its the coversion rate with respect to your corporate currency. In your use case where you want to covert currency A stored in object 1 to Currency B might not be the right use case.
- DatedConversionRate does not support DML however you can query the information using SOQL. You can then use the values from DatedConversionRate table and apply the coversion logic in your custom code.
SELECT Id, IsoCode, ConversionRate, StartDate, NextStartDate FROM DatedConversionRate ORDER BY NextStartDate DESC