I have a class that gets an object that has a Currency field called Amount__c
.
I am updating all my queries to work for a multi-currency org. So my query now becomes:
SELECT
Id,
Amount__c,
convertCurrency(Amount__c) Converted___Amount__c
FROM Revenue__c
WHERE xyz
In my test class, I need to check if that object is getting the converted currency alias, but I can't use .get
cos it tells me that field doesn't exist on the Revenue__c
object. Can anyone tell me how I check if the alias is on the object returned?