Salesforce Fact #863 | Another POC using FormulaEvalInApex

In order to fetch the currency conversion rate for a particular currency in Apex, we need to query CurrencyType or DatedConversionRate Sobject.

We can make use of the FormulaEvalInApex feature to get the conversion rate using dynamic formula without the need of any SOQL.

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow