Thursday, 19 January 2017

Side Snippet: Status and Action for Service Entities

Case (Incident)

Case has the following statuses: - Active , Resolved and Cancelled.

Case Resolution statuses - Open, Completed and cancelled. (History of closed activities).

Routing Rules statuses: - Draft and Active

Automatic Case Routing - Draft and Active

Parent Child Cases - N/A - even though there is a setting option

Process Ribbon - Identify, Research and Resolve

Menu - New, Create Child Case, Resolve Case, Cancel Case,  Apply Routing Rule,
             Add to Queue, Queue Item Details, Assign, Delete, Share, Email a Link,
             Follow, Run Workflow, Start Dialog, Switch Process, Edit Process,
             Run Report and Form Editor.


Knowledge Base

Article Template has the following statuses: -  Active and Inactive.

Article has the following statuses: - Draft, Unapproved and Published.


Queues

Queues has the following statuses: - Active and Inactive.


SLA

SLA  has the following statuses: - Draft and Active.


Entitlement

Entitlement has the following statuses: - Draft, Waiting, Active, Cancelled and Expired.

Entitlement Templates has the following statuses: - NA??


Equipment / Facility

Equipment / Facility statuses - New, Existing.


Users

User statuses: Enabled and Disabled.

Service

Service statuses: - Active and Inactive.


Resource Group

Resource Groups statuses - Active and Inactive.


Site

Site status - No status fields. Can only create and delete site.


Business Closures

Business Closures statuses - NA ??


Goals

Goal status - Closed, Discarded and Open


Goal Metrics

Goal Metric status: - Active and Inactive


================================================


Sales Literature

Sales Literature status - No status fields.


Competitors

Competitors status  - No status fields.


Sales Territory

Sales Territory Status - No status field


Currency

Currency Status - Active and Inactive


Lead

Lead statuses - Open,Disqualified and Qualified.


Opportunity

Opportunity statuses  - Open, Lost and Won


Quote

Quote statuses - Draft, Active, Won, Lost


Order

Order statuses  - Active, Submitted, Cancelled and Fulfilled


Invoice

Invoice statuses - Open, Paid, Cancelled


Unit Groups - Active and Inactive

Product -  Active, Draft, Retired and Under Revision

Price List -  Active and Inactive (no status reason)

Discount List - Active and Inactive (no status reason)

Family Groups - entity not in advanced find

Bundles -

Tailored List

=============================================

Marketing Lists - Active

Campaigns - Active (proposed, ready to launch, launched, completed,
                                   Cancelled and suspended)

Campaign Responses - Open, Closed



Monday, 16 January 2017

Side Snippet: Service Activity Functionality - Brief

Case (Incident)

Cases are the fundamental record type in service management and represent a single incident of service.  Different organizations may refer to cases using different terms, including incident, ticket, service request, and many others.

Automatic Case Creation

Automatically create cases based upon certain criteria.
Under settings / Service manager.

Can automatically create case from (Source Type):-
                    Email
                    Social Monitoring


Can specify a specific queue to monitor for automatic creation of a case.

Specific Conditions for Case creation: -
                - Case creation for email from unknown senders
                - Create case if valid entitlement exist

                - Create case for activities on a resolved case (additional time field from after case resolved)
                   (for example 15 minutes after case resolved)

Once case created may want to create automatic response to customer.
Automatic case creation records need to be activated. (status are draft and active).

Specific case details allow for new rules to be created.
Do this by evaluating email for example - if email description contains 'Microsoft'

Then can set the case to becreated properies.

Case Routing

Used to determine what happens to a case after it gets created.
Under settings / Service manager.

if condition satisfied then can route to queue and is added to queue
       -- alternatively --
if condition satisfied then assign to user or team and is assigned to user or team.

Add conditions for example case with subject xxx gets routed to queue yyy.

To modify a routing rule need to deactivate it as it is read-only when active.
Routing rules need to be manually run. no automatic option like a workflow.

Parent Child Cases

 Certain items that are inherited from a parent case to a child case when it's created.
You can also specify what happens when the parent case is closed. Such as resolving any open child cases or preventing parent case to be resolved , if child case is active.
When reactivating the parent case the child case is not reactivated.

Subject Tree

The subject tree hierarchy of the subjects or categories that provides a structured approach for grouping and managing information.
Cases , knowledge base articles are associated with a subject from the subject tree. 
The subject may be used to determine routing or case assignment.
Subject tree used in cases, knowledge base, sales territory and product catalogue.

Knowledge Base

Templates: -
All Knowledge Base articles are based upon an article template.Enforce consistent presentation of important information
Default : -
  • Procedure, 
  • questions and answers, 
  • solutions to a problem, and 
  • standard Knowledge Base or KB article

Articles: -
Organizations use a knowledge base to provide customer service representatives with the information they need to answer questions about a product or service.
Create, Edit, Publish, Search through Workplace, Service Area and Advanced Find and  Search within the Case record.


Entitlements

Entitlements are agreements that could be used to specify the level and type of service customers are entitled to.
Entitlements can be defined for specific products: Contacts, channels or a combination of all three.  

Leads

A lead represents potential, a potential sale,  or a potential contact or an account within an organization who you might do business with.
A lead is a temporary record.
Sometimes known as a prospect. Used to determine the viability of a potential customer.
Qualified lead is transformed into an opportunity, contact and account.
A lead can also be disqualified.
An email can be converted to a lead (opportunity or case).

Opportunity

Is the next step after a lead.
When the prospect or the customer expresses qualified interest in buying the business products or services, they're considered an opportunity


Revenue field - User provided (manual entry) or System Calculated (from products). The amount field is Estimated Revenue.

Quote
A quote can only be changed in Draft status.
Quotes cannot be saved unless price list is specified.

Order

Invoice

A price list is required before an invoice can be cancelled.


Goals

 Creation order => Goal Metric header (metric type and data type)
                         => Rollup fields (Goal Metric Details - rollup field, source record type, status, date field)

                                                                    { example- actual, opportunity, won, actual closed date}
                         => Goals

Goals have 4 components (required information):-
     Goal Metric - 
 How and What is being measured. is a numeric measure that defines the base of the                                    value a field contained within a specific record type. 
                            Default -  Number of cases, Revenue and number of products.
     Goal Target - A specific value of a goal metric that's entered into a specific time period.
     Goal Owner - The user or team to which a goal is assigned
     Time period - All goals are time based. Fiscal or custom

    Goals contain calculated fields such as actual amount, in-progress.
    Goals can be recalculated by pressing the recalculate button.

   ------------------ Goal Metrics -------------------------------------     Rollup Fields - found in Metrics. Are which record types that are being analysed.
                            For any one goal metric, we can have three different kinds of rollup fields: -
                           Actual  

                           Progress 
                          Custom field

                           The rollup field has 3 attributes to be filled in (below example of actual):-
                            Rollup Field - for an 'opportunity' the actual revenue is the 'actual revenue' field.
                           Source Record Type State - 
for an 'opportunity' - 'Won' (open, lost)
                                                                    - can also select status (applicable).
                          Date Field - to use and measure for eg 'Opportunity' could be 'Actual Close Date'


------------------ Goal  -------------------------------------
  Rollup queries - are used to extend Goal Metrics. For example specific areas etc.
                          - allows us to find a more distinct subset of data that's going to really count towards a                                 sales goal.

                         options - rollup from child goals or rollup from recordset.



Sunday, 1 January 2017

Field Service - Work Orders - Deep Dive

The 'Work Order' entity is msdyn_workorder



Business Functionality
---------------------------

a) Purpose of Work Order: -

Location of service work
Types of work to be performed
Preference of the customer

b) Work order can be generated by

Work Order can be created from a Case (Incident)
Work Order can be created from an Opportunity
Work Order can be created automatically using a recurring schedule
Work Order can be created manually

c) Important Attributes Functionality

Service Account - location information
Billing Account - financial responsibility. If empty use service account
Product Pricelist - for products used in work order
Service Territory - field service operations
Instructions - unique instructions relating to service location.
Taxable products and services
Service address and geocoding
System Status - life cycle of the workorder
Work Order Summary - description of work to be performed
Incident Type - First incident type is the primary, multiple incident types can be added.
Used to inherit duration etc.

Coding Functionality
-------------------------



The fields are: -




Work Order Id (Unique Identifier) msdyn_workorderid
Work Order Number (string) msdyn_name
Service Account (lookup) msdyn_serviceaccount
Billing Account (lookup) msdyn_billingaccount
System Status (picklist) msdyn_systemstatus

Sub-Status (lookup) msdyn_substatus
Work Order Summary (memo) msdyn_workordersummary

Primary Incident Type (lookup) msdyn_primaryincidenttype
Primary Incident Description (memo) 
msdyn_primaryincidentdescription
Primary Incident Estimated Duration (integer) msdyn_primaryincidentestimatedduration
Primary Incident Customer Asset (lookup) msdyn_customerasset















Estimate Subtotal Amount (money) msdyn_estimatesubtotalamount
Subtotal Amount (money) msdyn_subtotalamount
Total Sales Tax (money) msdyn_totalsalestax 
Total Amount (money) msdyn_totalamount

Work Order Type (lookup) msdyn_workordertype
Price List (lookup) msdyn_pricelist
Priority (lookup) msdyn_priority
Work Location (picklist) msdyn_worklocation
Service Territory (lookup) msdyn_serviceterritory
Instructions (memo) msdyn_instructions

Originating Work Order (lookup) msdyn_parentworkorder
Agreement (lookup) msdyn_agreement

Taxable (boolean) msdyn_taxable
Sales Tax Code (lookup) msdyn_taxcode

Preferred Resource (lookup) msdyn_preferredresource
Time From Promised (DateTime) msdyn_timefrompromised
Time To Promised (DateTime) msdyn_timetopromised
Date Window Start (DateTimemsdyn_datewindowstart
Date Window End (DateTimemsdyn_datewindowend
Time Window Start (DateTimemsdyn_timewindowstart
Time Window End (DateTimemsdyn_timewindowend
Time Group (lookup) msdyn_timegroup
Sales Tax Code (lookup) msdyn_taxcode

Follow Up Required (boolean) msdyn_followuprequired
Follow Up Note (memo) msdyn_followupnote

Reported By Contact (lookup) msdyn_reportedbycontact
Service Request (lookup) msdyn_servicerequest






Address Name (string) msdyn_addressname
Address 1 (string) msdyn_address1
Address 2 (string) msdyn_address2
Address 3 (string) msdyn_address3
City (string) msdyn_city
State Or Province (string) msdyn_stateorprovince
Postal Code (string) msdyn_postalcode
Country/Region (string) msdyn_country
Latitude (double) msdyn_latitude
Longitude (double) msdyn_longitude

Booking Summary (memo)  msdyn_bookingsummary *
Child Index (integer) msdyn_childindex *
Closed By (lookup) msdyn_closedby *
Internal Flags (memo) msdyn_internalflags *
Is FollowUp (boolean) msdyn_isfollowup *
Is Mobile (boolean) msdyn_ismobile *
Opportunity (lookup) msdyn_opportunityid
Closed On (DateTime) msdyn_timeclosed
Time Group Detail Selected (lookup) msdyn_timegroupdetailselected


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


var msdyn_address1 = result["msdyn_address1"];
var msdyn_address2 = result["msdyn_address2"];
var msdyn_address3 = result["msdyn_address3"];
var msdyn_addressname = result["msdyn_addressname"];
            
var _msdyn_agreement_value = result["_msdyn_agreement_value"];
var _msdyn_agreement_value_formatted = result["_msdyn_agreement_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_agreement_value_lookuplogicalname = result["_msdyn_agreement_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_bookingsummary = result["msdyn_bookingsummary"];
            
var msdyn_childindex = result["msdyn_childindex"];
var msdyn_childindex_formatted = result["msdyn_childindex@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_city = result["msdyn_city"];
            
var _msdyn_closedby_value = result["_msdyn_closedby_value"];
var _msdyn_closedby_value_formatted = result["_msdyn_closedby_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_closedby_value_lookuplogicalname = result["_msdyn_closedby_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_country = result["msdyn_country"];
            
var _msdyn_customerasset_value = result["_msdyn_customerasset_value"];
var _msdyn_customerasset_value_formatted = result["_msdyn_customerasset_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_customerasset_value_lookuplogicalname = result["_msdyn_customerasset_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_datewindowend = result["msdyn_datewindowend"];
var msdyn_datewindowstart = result["msdyn_datewindowstart"];

var msdyn_estimatesubtotalamount = result["msdyn_estimatesubtotalamount"];
var msdyn_estimatesubtotalamount_formatted = result["msdyn_estimatesubtotalamount@OData.Community.Display.V1.FormattedValue"];
var msdyn_estimatesubtotalamount_base = result["msdyn_estimatesubtotalamount_base"];
var msdyn_estimatesubtotalamount_base_formatted = result["msdyn_estimatesubtotalamount_base@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_followupnote = result["msdyn_followupnote"];
            
var msdyn_followuprequired = result["msdyn_followuprequired"];
var msdyn_followuprequired_formatted = result["msdyn_followuprequired@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_instructions = result["msdyn_instructions"];
var msdyn_internalflags = result["msdyn_internalflags"];
            
var msdyn_isfollowup = result["msdyn_isfollowup"];
var msdyn_isfollowup_formatted = result["msdyn_isfollowup@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_ismobile = result["msdyn_ismobile"];
var msdyn_ismobile_formatted = result["msdyn_ismobile@OData.Community.Display.V1.FormattedValue"];
            
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_name = result["msdyn_name"];
            
var _msdyn_opportunityid_value = result["_msdyn_opportunityid_value"];
var _msdyn_opportunityid_value_formatted = result["_msdyn_opportunityid_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_opportunityid_value_lookuplogicalname = result["_msdyn_opportunityid_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var _msdyn_parentworkorder_value = result["_msdyn_parentworkorder_value"];
var _msdyn_parentworkorder_value_formatted = result["_msdyn_parentworkorder_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_parentworkorder_value_lookuplogicalname = result["_msdyn_parentworkorder_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var msdyn_postalcode = result["msdyn_postalcode"];
            
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_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_primaryincidentdescription = result["msdyn_primaryincidentdescription"];

var msdyn_primaryincidentestimatedduration = result["msdyn_primaryincidentestimatedduration"];
var msdyn_primaryincidentestimatedduration_formatted = result["msdyn_primaryincidentestimatedduration@OData.Community.Display.V1.FormattedValue"];
            
var _msdyn_primaryincidenttype_value = result["_msdyn_primaryincidenttype_value"];
var _msdyn_primaryincidenttype_value_formatted = result["_msdyn_primaryincidenttype_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_primaryincidenttype_value_lookuplogicalname = result["_msdyn_primaryincidenttype_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var _msdyn_priority_value = result["_msdyn_priority_value"];
var _msdyn_priority_value_formatted = result["_msdyn_priority_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_priority_value_lookuplogicalname = result["_msdyn_priority_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
var _msdyn_reportedbycontact_value = result["_msdyn_reportedbycontact_value"];
var _msdyn_reportedbycontact_value_formatted = result["_msdyn_reportedbycontact_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_reportedbycontact_value_lookuplogicalname = result["_msdyn_reportedbycontact_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
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_servicerequest_value = result["_msdyn_servicerequest_value"];
var _msdyn_servicerequest_value_formatted = result["_msdyn_servicerequest_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_servicerequest_value_lookuplogicalname = result["_msdyn_servicerequest_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_stateorprovince = result["msdyn_stateorprovince"];
            
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_subtotalamount = result["msdyn_subtotalamount"];
var msdyn_subtotalamount_formatted = result["msdyn_subtotalamount@OData.Community.Display.V1.FormattedValue"];
var msdyn_subtotalamount_base = result["msdyn_subtotalamount_base"];
var msdyn_subtotalamount_base_formatted = result["msdyn_subtotalamount_base@OData.Community.Display.V1.FormattedValue"];
            
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_timeclosed = result["msdyn_timeclosed"];
            
var msdyn_timefrompromised = result["msdyn_timefrompromised"];
            
var _msdyn_timegroup_value = result["_msdyn_timegroup_value"];
var _msdyn_timegroup_value_formatted = result["_msdyn_timegroup_value@OData.Community.Display.V1.FormattedValue"];
var _msdyn_timegroup_value_lookuplogicalname = result["_msdyn_timegroup_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
            
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_timetopromised = result["msdyn_timetopromised"];
var msdyn_timewindowend = result["msdyn_timewindowend"];
var msdyn_timewindowstart = result["msdyn_timewindowstart"];
            
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_totalsalestax = result["msdyn_totalsalestax"];
var msdyn_totalsalestax_formatted = result["msdyn_totalsalestax@OData.Community.Display.V1.FormattedValue"];
var msdyn_totalsalestax_base = result["msdyn_totalsalestax_base"];
var msdyn_totalsalestax_base_formatted = result["msdyn_totalsalestax_base@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_worklocation = result["msdyn_worklocation"];
var msdyn_worklocation_formatted = result["msdyn_worklocation@OData.Community.Display.V1.FormattedValue"];
            
var msdyn_workorderid = result["msdyn_workorderid"];
            
var msdyn_workordersummary = result["msdyn_workordersummary"];
            
var _msdyn_workordertype_value = result["_msdyn_workordertype_value"];
var _msdyn_workordertype_value_formatted = result["_msdyn_workordertype_value@OData.Community.Display.V1.FormattedValue"];

var _msdyn_workordertype_value_lookuplogicalname = result["_msdyn_workordertype_value@Microsoft.Dynamics.CRM.lookuplogicalname"];

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

var msdyn_Address1 = result.msdyn_Address1;
var msdyn_Address2 = result.msdyn_Address2;
var msdyn_Address3 = result.msdyn_Address3;
var msdyn_AddressName = result.msdyn_AddressName;
var msdyn_Agreement = result.msdyn_Agreement;
var msdyn_BillingAccount = result.msdyn_BillingAccount;
var msdyn_BookingSummary = result.msdyn_BookingSummary;
var msdyn_ChildIndex = result.msdyn_ChildIndex;
var msdyn_City = result.msdyn_City;
var msdyn_ClosedBy = result.msdyn_ClosedBy;
var msdyn_Country = result.msdyn_Country;
var msdyn_CustomerAsset = result.msdyn_CustomerAsset;
var msdyn_DateWindowEnd = result.msdyn_DateWindowEnd;
var msdyn_DateWindowStart = result.msdyn_DateWindowStart;
var msdyn_EstimateSubtotalAmount = result.msdyn_EstimateSubtotalAmount;
var msdyn_estimatesubtotalamount_Base = result.msdyn_estimatesubtotalamount_Base;
var msdyn_FollowUpNote = result.msdyn_FollowUpNote;
var msdyn_FollowUpRequired = result.msdyn_FollowUpRequired;
var msdyn_Instructions = result.msdyn_Instructions;
var msdyn_InternalFlags = result.msdyn_InternalFlags;
var msdyn_IsFollowUp = result.msdyn_IsFollowUp;
var msdyn_IsMobile = result.msdyn_IsMobile;
var msdyn_Latitude = result.msdyn_Latitude;
var msdyn_Longitude = result.msdyn_Longitude;
var msdyn_name = result.msdyn_name;
var msdyn_OpportunityId = result.msdyn_OpportunityId;
var msdyn_ParentWorkOrder = result.msdyn_ParentWorkOrder;
var msdyn_PostalCode = result.msdyn_PostalCode;
var msdyn_PreferredResource = result.msdyn_PreferredResource;
var msdyn_PriceList = result.msdyn_PriceList;
var msdyn_PrimaryIncidentDescription = result.msdyn_PrimaryIncidentDescription;
var msdyn_PrimaryIncidentEstimatedDuration = result.msdyn_PrimaryIncidentEstimatedDuration;
var msdyn_PrimaryIncidentType = result.msdyn_PrimaryIncidentType;
var msdyn_Priority = result.msdyn_Priority;
var msdyn_ReportedByContact = result.msdyn_ReportedByContact;
var msdyn_ServiceAccount = result.msdyn_ServiceAccount;
var msdyn_ServiceRequest = result.msdyn_ServiceRequest;
var msdyn_ServiceTerritory = result.msdyn_ServiceTerritory;
var msdyn_StateOrProvince = result.msdyn_StateOrProvince;
var msdyn_SubStatus = result.msdyn_SubStatus;
var msdyn_SubtotalAmount = result.msdyn_SubtotalAmount;
var msdyn_subtotalamount_Base = result.msdyn_subtotalamount_Base;
var msdyn_SystemStatus = result.msdyn_SystemStatus;
var msdyn_Taxable = result.msdyn_Taxable;
var msdyn_TaxCode = result.msdyn_TaxCode;
var msdyn_TimeClosed = result.msdyn_TimeClosed;
var msdyn_TimeFromPromised = result.msdyn_TimeFromPromised;
var msdyn_TimeGroup = result.msdyn_TimeGroup;
var msdyn_TimeGroupDetailSelected = result.msdyn_TimeGroupDetailSelected;
var msdyn_TimeToPromised = result.msdyn_TimeToPromised;
var msdyn_TimeWindowEnd = result.msdyn_TimeWindowEnd;
var msdyn_TimeWindowStart = result.msdyn_TimeWindowStart;
var msdyn_TotalAmount = result.msdyn_TotalAmount;
var msdyn_totalamount_Base = result.msdyn_totalamount_Base;
var msdyn_TotalSalesTax = result.msdyn_TotalSalesTax;
var msdyn_totalsalestax_Base = result.msdyn_totalsalestax_Base;
var msdyn_WorkLocation = result.msdyn_WorkLocation;
var msdyn_workorderId = result.msdyn_workorderId;
var msdyn_WorkOrderSummary = result.msdyn_WorkOrderSummary;
 var msdyn_WorkOrderType = result.msdyn_WorkOrderType;