Thursday, 24 November 2016

Field Service - Product Deep dive on Product Entity

The product entity is used by field services. Additional field service attribute has been created on the Product Entity.


Field Service Product Type (option set) msdyn_fieldserviceproducttype
UPC Code (string) msdyn_upccode - use for barcoding
Convert to Customer Asset (boolean) msdyn_converttocustomerasset
Default Vendor (lookup) msdyn_defaultvendor
Purchase Name (string) msdyn_purchasename - name used on purchase order
Taxable (boolean) msdyn_taxable - indicate if item is taxable



Note: the prefix is ms_dyn. Recall that this prefix is used when Microsoft is the publisher of the solution.

Note: UPC Code has 12 numbers usually used in USA. In Australia EAN-13 and UPC format is used. EAN-13 has 13 numbers and is a  European format. EAN is a superset of UPC to allow for extra numbers. Scanners can typically read both formats.

Note: Field Service product type OOB options are: -

Inventory
Non-Inventory -product that is not tracked for inventory purposes.
Service

----------------------------------------------------------------------------------------------------
Late Binding use
----------------------------------------------------------------------------------------------------

var msdyn_converttocustomerasset = result["msdyn_converttocustomerasset"];
var msdyn_converttocustomerasset_formatted = result["msdyn_converttocustomerasset@OData.Community.Display.V1.FormattedValue"];
           
var _msdyn_defaultvendor_value = result["_msdyn_defaultvendor_value"];
var _msdyn_defaultvendor_value_formatted = result["_msdyn_defaultvendor_value@OData.Community.Display.V1.FormattedValue"];
           
var _msdyn_defaultvendor_value_lookuplogicalname = result["_msdyn_defaultvendor_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
           
var msdyn_fieldserviceproducttype = result["msdyn_fieldserviceproducttype"];
var msdyn_fieldserviceproducttype_formatted = result["msdyn_fieldserviceproducttype@OData.Community.Display.V1.FormattedValue"];
           
var msdyn_purchasename = result["msdyn_purchasename"];
var msdyn_taxable = result["msdyn_taxable"];
var msdyn_taxable_formatted = result["msdyn_taxable@OData.Community.Display.V1.FormattedValue"];
           
var msdyn_upccode = result["msdyn_upccode"];



----------------------------------------------------------------------------------------------------
Early Binding use
----------------------------------------------------------------------------------------------------

var msdyn_ConvertToCustomerAsset = result.msdyn_ConvertToCustomerAsset;
var msdyn_DefaultVendor = result.msdyn_DefaultVendor;
var msdyn_FieldServiceProductType = result.msdyn_FieldServiceProductType;
var msdyn_PurchaseName = result.msdyn_PurchaseName;
var msdyn_Taxable = result.msdyn_Taxable;
var msdyn_UPCCode = result.msdyn_UPCCode;

No comments:

Post a Comment