Retrieve value from Currency field

Mar 25, 2015 at 7:03 PM
I'm using the retrieve method in the xrmsvctoolkit and am trying to get the value from a currency field on a related record.

When I throw an alert to tell me the value retrieved, I'm getting ["object Object"] as my result. I've tried retrieving the actual field as well as the base field.

Example:
var quote = Xrm.Page.getAttribute("ev_selectpricequotedetail").getValue();
var quoteid = quote[0].id;

var results = XrmSvcToolkit.retrieve({
    entityName: "ev_pricequotedetail",
    id: quoteid,
    select: ["ev_name", "ev_price", "ev_price_Base"],
    async: false
});

var quotePrice = results.ev_price;
var priceBase = results.ev_price_Base;
alert(quotePrice);
alert(priceBase);   
I don't have this issue with string fields I'm retrieving from the same entity. Any suggestiosn as to how to retrieve the currency data?
Mar 25, 2015 at 9:15 PM
Nevermind; I was missing the .Value at the end of the var:

var quotePrice = results.ev_price.Value

This will return the full data vaule.
Marked as answer by mdeaver on 3/25/2015 at 1:16 PM