Field service has customised the 'Account' entity.
The section and fields are shown below.
The fields are: -
Billing Account (lookup) msdyn_billingaccount
Tax Exempt (boolean) msdyn_taxexempt
Sales Tax Code (lookup) msdyn_salestaxcode
Service Territory (lookup) msdyn_serviceterritory
Preferred Resource (lookup) msdyn_preferredresource
Travel Charge Type (picklist) msdyn_travelchargetype
Work Order Instructions (memo) msdyn_workorderinstructions
Travel Charge (money) msdyn_travelcharge *
Tax Exempt Number (string) msdyn_taxexemptnumber
------------------------------------------------------------------------------------
Late-binding example
-----------------------------------------------------------------------------------
var _msdyn_billingaccount_value = result["_msdyn_billingaccount_value"];
var _msdyn_billingaccount_value_formatted = result["_msdyn_billingaccount_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_billingaccount_value_lookuplogicalname = result["_msdyn_billingaccount_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
var _msdyn_preferredresource_value = result["_msdyn_preferredresource_value"];
var _msdyn_preferredresource_value_formatted = result["_msdyn_preferredresource_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_preferredresource_value_lookuplogicalname = result["_msdyn_preferredresource_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
var _msdyn_salestaxcode_value = result["_msdyn_salestaxcode_value"];
var _msdyn_salestaxcode_value_formatted = result["_msdyn_salestaxcode_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_salestaxcode_value_lookuplogicalname = result["_msdyn_salestaxcode_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
var _msdyn_serviceterritory_value = result["_msdyn_serviceterritory_value"];
var _msdyn_serviceterritory_value_formatted = result["_msdyn_serviceterritory_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_serviceterritory_value_lookuplogicalname = result["_msdyn_serviceterritory_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
var msdyn_taxexempt = result["msdyn_taxexempt"];
var msdyn_taxexempt_formatted = result["msdyn_taxexempt@OData.Community.Display.V1.FormattedValue"];
var msdyn_taxexemptnumber = result["msdyn_taxexemptnumber"];
var msdyn_travelcharge = result["msdyn_travelcharge"];
var msdyn_travelcharge_formatted = result["msdyn_travelcharge@OData.Community.Display.V1.FormattedValue"];
var msdyn_travelcharge_base = result["msdyn_travelcharge_base"];
var msdyn_travelcharge_base_formatted = result["msdyn_travelcharge_base@OData.Community.Display.V1.FormattedValue"];
var msdyn_travelchargetype = result["msdyn_travelchargetype"];
var msdyn_travelchargetype_formatted = result["msdyn_travelchargetype@OData.Community.Display.V1.FormattedValue"];
var msdyn_workorderinstructions = result["msdyn_workorderinstructions"];
-----------------------------------------------------------------------------------
Early-binding example
-----------------------------------------------------------------------------------
var msdyn_BillingAccount = result.msdyn_BillingAccount;
var msdyn_PreferredResource = result.msdyn_PreferredResource;
var msdyn_SalesTaxCode = result.msdyn_SalesTaxCode;
var msdyn_ServiceTerritory = result.msdyn_ServiceTerritory;
var msdyn_TaxExempt = result.msdyn_TaxExempt;
var msdyn_TaxExemptNumber = result.msdyn_TaxExemptNumber;
var msdyn_TravelCharge = result.msdyn_TravelCharge;
var msdyn_travelcharge_Base = result.msdyn_travelcharge_Base;
var msdyn_TravelChargeType = result.msdyn_TravelChargeType;
var msdyn_WorkOrderInstructions = result.msdyn_WorkOrderInstructions;
No comments:
Post a Comment