Friday, 30 December 2016

Field Service - Bookable Resource Booking - Deep Dive

The 'Bookable Resource Booking' entity is bookableresourcebooking

The fields are: -







Estimated Arrival Time (DateTime) msdyn_estimatedarrivaltime Actual Arrival Time (DateTime) msdyn_actualarrivaltime
Total Billable Duration (integer) msdyn_totalbillableduration
Total Duration In Progress (integer) msdyn_totaldurationinprogress
Total Break Duration (integer) msdyn_totalbreakduration

Work Order (lookup) msdyn_workorder
Allow Overlapping (boolean) msdyn_allowoverlapping
Booking Method (picklist) msdyn_bookingmethod
Resource Group (lookup) msdyn_resourcegroup
Total Cost (money) msdyn_totalcost
Agreement Booking Date (lookup) msdyn_agreementbookingdate
Time Group Detail Selected (lookup) msdyn_timegroupdetailselected

Estimated Travel Duration (integer) msdyn_estimatedtravelduration
Actual Travel Duration (integer) msdyn_actualtravelduration
Miles Traveled (double) msdyn_milestraveled

Latitude (double) msdyn_latitude
Longitude (double) msdyn_longitude

Cascade Crew Changes (boolean) msdyn_cascadecrewchanges *
Internal Flags (memo) msdyn_internalflags *
 Prevent Timestamp Creation (boolean) msdyn_preventtimestampcreation *
 Slot Text (memo) msdyn_slottext *
 Travel Time Rescheduling (boolean) msdyn_traveltimerescheduling *


------------------------------------------------------------------------------------
Late-binding example (using OData)
----------------------------------------------------------------------------------- 
 var msdyn_actualarrivaltime = result["msdyn_actualarrivaltime"];
            
var msdyn_actualtravelduration = result["msdyn_actualtravelduration"];
var msdyn_actualtravelduration_formatted = result["msdyn_actualtravelduration@OData.Community.Display.V1.FormattedValue"];
            
var _msdyn_agreementbookingdate_value = result["_msdyn_agreementbookingdate_value"];
var _msdyn_agreementbookingdate_value_formatted = result["_msdyn_agreementbookingdate_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_agreementbookingdate_value_lookuplogicalname = result["_msdyn_agreementbookingdate_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_allowoverlapping = result["msdyn_allowoverlapping"];
var msdyn_allowoverlapping_formatted = result["msdyn_allowoverlapping@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_bookingmethod = result["msdyn_bookingmethod"];
var msdyn_bookingmethod_formatted = result["msdyn_bookingmethod@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_cascadecrewchanges = result["msdyn_cascadecrewchanges"];
var msdyn_cascadecrewchanges_formatted = result["msdyn_cascadecrewchanges@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_estimatedarrivaltime = result["msdyn_estimatedarrivaltime"];
            
var msdyn_estimatedtravelduration = result["msdyn_estimatedtravelduration"];
var msdyn_estimatedtravelduration_formatted = result["msdyn_estimatedtravelduration@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_internalflags = result["msdyn_internalflags"]; 

var msdyn_latitude = result["msdyn_latitude"];
var msdyn_latitude_formatted = result["msdyn_latitude@OData.Community.Display.V1.FormattedValue"];
var msdyn_longitude = result["msdyn_longitude"];
var msdyn_longitude_formatted = result["msdyn_longitude@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_milestraveled = result["msdyn_milestraveled"];
var msdyn_milestraveled_formatted = result["msdyn_milestraveled@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_preventtimestampcreation = result["msdyn_preventtimestampcreation"];
var msdyn_preventtimestampcreation_formatted = result["msdyn_preventtimestampcreation@OData.Community.Display.V1.FormattedValue"];
            
var _msdyn_resourcegroup_value = result["_msdyn_resourcegroup_value"];
var _msdyn_resourcegroup_value_formatted = result["_msdyn_resourcegroup_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_resourcegroup_value_lookuplogicalname = result["_msdyn_resourcegroup_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_slottext = result["msdyn_slottext"];
            
var _msdyn_timegroupdetailselected_value = result["_msdyn_timegroupdetailselected_value"];
var _msdyn_timegroupdetailselected_value_formatted = result["_msdyn_timegroupdetailselected_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_timegroupdetailselected_value_lookuplogicalname = result["_msdyn_timegroupdetailselected_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_totalbillableduration = result["msdyn_totalbillableduration"];
var msdyn_totalbillableduration_formatted = result["msdyn_totalbillableduration@OData.Community.Display.V1.FormattedValue"];
var msdyn_totalbreakduration = result["msdyn_totalbreakduration"];
var msdyn_totalbreakduration_formatted = result["msdyn_totalbreakduration@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_totalcost = result["msdyn_totalcost"];
var msdyn_totalcost_formatted = result["msdyn_totalcost@OData.Community.Display.V1.FormattedValue"];
var msdyn_totalcost_base = result["msdyn_totalcost_base"];
            
var msdyn_totalcost_base_formatted = result["msdyn_totalcost_base@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_totaldurationinprogress = result["msdyn_totaldurationinprogress"];
var msdyn_totaldurationinprogress_formatted = result["msdyn_totaldurationinprogress@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_traveltimerescheduling = result["msdyn_traveltimerescheduling"];
var msdyn_traveltimerescheduling_formatted = result["msdyn_traveltimerescheduling@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_ActualArrivalTime = result.msdyn_ActualArrivalTime;
 var msdyn_ActualTravelDuration = result.msdyn_ActualTravelDuration;
 var msdyn_AgreementBookingDate = result.msdyn_AgreementBookingDate;
 var msdyn_AllowOverlapping = result.msdyn_AllowOverlapping;
 var msdyn_BookingMethod = result.msdyn_BookingMethod;
 var msdyn_CascadeCrewChanges = result.msdyn_CascadeCrewChanges;
 var msdyn_EstimatedArrivalTime = result.msdyn_EstimatedArrivalTime;
 var msdyn_EstimatedTravelDuration = result.msdyn_EstimatedTravelDuration;
 var msdyn_InternalFlags = result.msdyn_InternalFlags;
 var msdyn_Latitude = result.msdyn_Latitude;
 var msdyn_Longitude = result.msdyn_Longitude;
 var msdyn_MilesTraveled = result.msdyn_MilesTraveled;
 var msdyn_PreventTimestampCreation = result.msdyn_PreventTimestampCreation;
 var msdyn_ResourceGroup = result.msdyn_ResourceGroup;
 var msdyn_SlotText = result.msdyn_SlotText;
 var msdyn_TimeGroupDetailSelected = result.msdyn_TimeGroupDetailSelected;
var msdyn_TotalBillableDuration = result.msdyn_TotalBillableDuration;
var msdyn_TotalBreakDuration = result.msdyn_TotalBreakDuration;
var msdyn_TotalCost = result.msdyn_TotalCost;
var msdyn_totalcost_Base = result.msdyn_totalcost_Base;
var msdyn_TotalDurationInProgress = result.msdyn_TotalDurationInProgress;
var msdyn_TravelTimeRescheduling = result.msdyn_TravelTimeRescheduling;

var msdyn_WorkOrder = result.msdyn_WorkOrder;


No comments:

Post a Comment