Friday, 23 December 2016

Field Service - Return Merchandising Authorization (RMA) - Deep Dive

The 'Return Merchandising Authorization (RMA)' entity is msdyn_rma




The fields are: -




RMA Id (Unique Identifier) msdyn_rmaid
RMA Number (string) msdyn_name
Service Account (lookup) msdyn_serviceaccount
Billing Account (lookup) msdyn_billingaccount
Work Order (lookup) msdyn_workorder
Reference No (string) msdyn_referenceno
System Status (picklist) msdyn_systemstatus
Sub-Status (lookup) msdyn_substatus
Description (string) msdyn_description

Processing Action (picklist) msdyn_processingaction
Price List (lookup) msdyn_pricelist
Shipping Tracking No (string) msdyn_shippingtrackingno
Ship Via (lookup) msdyn_shipvia
Packaging Tracking No (string) msdyn_packagingtrackingno
Taxable (boolean) msdyn_taxable
Tax Code (lookup) msdyn_taxcode
Total Amount (money)  msdyn_totalamount

Date Requested (DateTime)  msdyn_daterequested
ETA (DateTime)  msdyn_eta
Approved By (lookup) msdyn_approvedby
Requested By Contact (lookup) msdyn_requestedbycontact

------------------------------------------------------------------------------------
Late-binding example (using OData)
----------------------------------------------------------------------------------- 


var _msdyn_approvedby_value = result["_msdyn_approvedby_value"];
var _msdyn_approvedby_value_formatted = result["_msdyn_approvedby_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_approvedby_value_lookuplogicalname = result["_msdyn_approvedby_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
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_daterequested = result["msdyn_daterequested"];
var msdyn_description = result["msdyn_description"];
var msdyn_eta = result["msdyn_eta"];
var msdyn_name = result["msdyn_name"];
var msdyn_packagingtrackingno = result["msdyn_packagingtrackingno"];
            
var _msdyn_pricelist_value = result["_msdyn_pricelist_value"];
var _msdyn_pricelist_value_formatted = result["_msdyn_pricelist_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_pricelist_value_lookuplogicalname = result["_msdyn_pricelist_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_processingaction = result["msdyn_processingaction"];
var msdyn_processingaction_formatted = result["msdyn_processingaction@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_referenceno = result["msdyn_referenceno"];
            
var _msdyn_requestedbycontact_value = result["_msdyn_requestedbycontact_value"];
var _msdyn_requestedbycontact_value_formatted = result["_msdyn_requestedbycontact_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_requestedbycontact_value_lookuplogicalname = result["_msdyn_requestedbycontact_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_rmaid = result["msdyn_rmaid"];
            
var _msdyn_serviceaccount_value = result["_msdyn_serviceaccount_value"];
var _msdyn_serviceaccount_value_formatted = result["_msdyn_serviceaccount_value@OData.Community.Display.V1.FormattedValue"];
            var _msdyn_serviceaccount_value_lookuplogicalname = result["_msdyn_serviceaccount_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_shippingtrackingno = result["msdyn_shippingtrackingno"];
var _msdyn_shipvia_value = result["_msdyn_shipvia_value"];
var _msdyn_shipvia_value_formatted = result["_msdyn_shipvia_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_shipvia_value_lookuplogicalname = result["_msdyn_shipvia_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var _msdyn_substatus_value = result["_msdyn_substatus_value"];
var _msdyn_substatus_value_formatted = result["_msdyn_substatus_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_substatus_value_lookuplogicalname = result["_msdyn_substatus_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_systemstatus = result["msdyn_systemstatus"];
var msdyn_systemstatus_formatted = result["msdyn_systemstatus@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_taxable = result["msdyn_taxable"];
var msdyn_taxable_formatted = result["msdyn_taxable@OData.Community.Display.V1.FormattedValue"];
            
var _msdyn_taxcode_value = result["_msdyn_taxcode_value"];
var _msdyn_taxcode_value_formatted = result["_msdyn_taxcode_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_taxcode_value_lookuplogicalname = result["_msdyn_taxcode_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_totalamount = result["msdyn_totalamount"];
var msdyn_totalamount_formatted = result["msdyn_totalamount@OData.Community.Display.V1.FormattedValue"];
var msdyn_totalamount_base = result["msdyn_totalamount_base"];
var msdyn_totalamount_base_formatted = result["msdyn_totalamount_base@OData.Community.Display.V1.FormattedValue"];
            
var _msdyn_workorder_value = result["_msdyn_workorder_value"];
var _msdyn_workorder_value_formatted = result["_msdyn_workorder_value@OData.Community.Display.V1.FormattedValue"];

var _msdyn_workorder_value_lookuplogicalname = result["_msdyn_workorder_value@Microsoft.Dynamics.CRM.lookuplogicalname"];



-----------------------------------------------------------------------------------
Early-binding example
-----------------------------------------------------------------------------------


 var msdyn_ApprovedBy = result.msdyn_ApprovedBy;
 var msdyn_BillingAccount = result.msdyn_BillingAccount;
 var msdyn_DateRequested = result.msdyn_DateRequested;
 var msdyn_Description = result.msdyn_Description;
 var msdyn_ETA = result.msdyn_ETA;
 var msdyn_name = result.msdyn_name;
 var msdyn_PackagingTrackingNo = result.msdyn_PackagingTrackingNo;
 var msdyn_PriceList = result.msdyn_PriceList;
 var msdyn_ProcessingAction = result.msdyn_ProcessingAction;
 var msdyn_ReferenceNo = result.msdyn_ReferenceNo;
 var msdyn_RequestedByContact = result.msdyn_RequestedByContact;
 var msdyn_rmaId = result.msdyn_rmaId;
 var msdyn_ServiceAccount = result.msdyn_ServiceAccount;
 var msdyn_ShippingTrackingNo = result.msdyn_ShippingTrackingNo;
 var msdyn_ShipVia = result.msdyn_ShipVia;
 var msdyn_SubStatus = result.msdyn_SubStatus;
 var msdyn_SystemStatus = result.msdyn_SystemStatus;
 var msdyn_Taxable = result.msdyn_Taxable;
 var msdyn_TaxCode = result.msdyn_TaxCode;
 var msdyn_TotalAmount = result.msdyn_TotalAmount;
 var msdyn_totalamount_Base = result.msdyn_totalamount_Base;

 var msdyn_WorkOrder = result.msdyn_WorkOrder;

No comments:

Post a Comment