Wednesday, 21 December 2016

Field Service - Inventory Transfers - Deep Dive




The 'Inventory Transfers' entity is msdyn_inventorytransfer



The fields are: -

Inventory Transfer Id (Unique Identifier) msdyn_inventorytransferid
Name (string) msdyn_name
Source Warehouse (lookup) msdyn_sourcewarehouse
Destination Warehouse (lookup) msdyn_destinationwarehouse
Transfer Time (DateTime) msdyn_transfertime
Transferred By Resource (lookup) msdyn_transferredbyresource
Description (memo) msdyn_description

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


var msdyn_description = result["msdyn_description"];

var _msdyn_destinationwarehouse_value = result["_msdyn_destinationwarehouse_value"];
var _msdyn_destinationwarehouse_value_formatted = result["_msdyn_destinationwarehouse_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_destinationwarehouse_value_lookuplogicalname = result["_msdyn_destinationwarehouse_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_inventorytransferid = result["msdyn_inventorytransferid"];
var msdyn_name = result["msdyn_name"];
            
var _msdyn_sourcewarehouse_value = result["_msdyn_sourcewarehouse_value"];
var _msdyn_sourcewarehouse_value_formatted = result["_msdyn_sourcewarehouse_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_sourcewarehouse_value_lookuplogicalname = result["_msdyn_sourcewarehouse_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var _msdyn_transferredbyresource_value = result["_msdyn_transferredbyresource_value"];
var _msdyn_transferredbyresource_value_formatted = result["_msdyn_transferredbyresource_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_transferredbyresource_value_lookuplogicalname = result["_msdyn_transferredbyresource_value@Microsoft.Dynamics.CRM.lookuplogicalname"];

            
var msdyn_transfertime = result["msdyn_transfertime"];





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

var msdyn_Description = result.msdyn_Description;
var msdyn_DestinationWarehouse = result.msdyn_DestinationWarehouse;
var msdyn_inventorytransferId = result.msdyn_inventorytransferId;
var msdyn_name = result.msdyn_name;
var msdyn_SourceWarehouse = result.msdyn_SourceWarehouse;
var msdyn_TransferredByResource = result.msdyn_TransferredByResource;

var msdyn_TransferTime = result.msdyn_TransferTime;

No comments:

Post a Comment