If I load a sales order using the code below, how do I get the shipcity
. Note that if you dump the object (salesOrder) you will see that there is NO shipcity
. Whats strange is that shipzip
, shipstate
and shipcountry
have their own fields but shipcity
does not. I also tried billcity
but to no avail. This seems like a big disconnect. The shipcity
should say Fort Wayne
like it does in the UI but the 2.0 API returns nothing
// load up a sales order from a Fort Worth customer
var salesOrder = record.load({
type: record.Type.SALES_ORDER,
id: salesOrderId,
isDynamic: true
});
// these work fine
salesOrder.getValue("shipcountry") = "US"
salesOrder.getValue("shipstate") = "IN"
salesOrder.getValue("shipzip") = "46804"
// none of the following work when it should say "Fort Wayne"
salesOrder.getValue("shipcity") = Null
salesOrder.getValue({ fieldId: "shipcity" }) = Null
salesOrder.getText("shipcity") = Null