Salesforce Decode
Salesforcedecode
Back to questions
LWCIntermediatemulti-currencyformatting

Handle currency and multi-currency display in LWC

Real World Scenario

Global sales LWC shows wrong currency symbols when user currency differs from record currency.

Expected Answer

• lightning-formatted-number currency-code currency-display-as • getRecord includes CurrencyIsoCode field • Corporate vs record currency labels clear to user • Apex returns both amount and iso code pairs • Do not concatenate currency symbols manually • Test with multi-currency enabled sandbox users • Exchange rate disclaimer when showing converted amounts

Follow-Up Questions & Answers

Click to expand — each follow-up includes a direct, interview-ready answer

Direct answer: lightning-formatted-number currency-code currency-display-as Also consider: getRecord includes CurrencyIsoCode field In practice: Corporate vs record currency labels clear to user Balance speed of delivery with maintainability.

Architect Perspective

Multi-currency display bugs erode trust—use platform formatters with explicit ISO codes.