I’m building a chart based on an aggregate of a currency field, showing a total currency amount across some rows that have been grouped by type.
Unfortunately, all the figures are wrong. They don’t add up with the currency amounts displayed for the rows in a table.
It turns out that Salesforce has a “feature” that when you do an aggregate query on a currency field in a multicurrency org, the aggregated currency field is returned in the org’s default currency, instead of the user’s currency.
https://developer.salesforce.com/forums/?id=906F00000008y4vIAA
There is a solution in the discussion above that involves querying the conversion rate yourself and applying it. I would do that if I was working in Apex, but can I do the same thing in a Skuid page? I suspect it would delay displaying the dashboard if I did it client-side.
Would it be possible for you to do this conversion server-side and return an extra field in the aggregate model with the aggregated currency fields in the user’s currency?
Question
Aggregate queries and multicurrency

Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.