I want to convert the amount field in opportunity object to the corporate currency, I found that the convertCurrency(amount) will give me the value in user's currency format, but I found that the user's currency does not corresponds to CurrencyISOCode instead it converts to corporate currency, does user's currency here refers to corporate currency, Is it right to use convertCurrency() to convert the value to the corporate currency?
sample data which I fetched for the opportunity object, here format_amt is an alias for FORMAT(amount) and convert_amt is an alias for convertCurrency(amount)
"Id": "123321212122",
"CurrencyIsoCode": "EUR",
"Owner": {
"attributes": {
"type": "User",
"url": "/services/data/v53.0/sobjects/User/00550000003DYHKAA4"
},
"DefaultCurrencyIsoCode": "EUR"
},
"format_amt": "EUR 1,522.95 (USD 2,097.71)",
"Amount": 1522.95,
"convert_Amt": 2097.71
so here I get the convertCurrency(amount) in USD format though the CurrencyIsoCode is EUR