Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Gets or sets the search strategy to use in the appointment request for the SearchRequest message.

Namespace:   Microsoft.Crm.Sdk.Messages
Assembly:  Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)

No code example is currently available or this language may not be supported.

Property Value

Type:

Type: StringThe search strategy to use in the appointment request.

Used in the property.

The scheduling engine supports three search strategies that are specified in the ObjectiveExpression property. A string that contains the search strategy is a parameter to the search methods. The examples show the valid values.

Least Busy - From the list of resources that can perform that specific service, choose the resource that is the least busy and is available at the requested time.

Most Busy - From the list of resources that can perform that specific service, choose the resource that is the busiest and is available at the requested time.

Random - From the list of resources that can perform that specific service, choose any resource that is available at the requested time.

The following table shows the supported values for an evaluation interval.

Value

Description

P0D

Refresh states per proposal.

PInfinity

Constantly refresh states.

P1D

Refresh states one time per day.

The following sample shows Most Busy.

<Expression>
  <Body>udf \"MostBusy\"(factory,resource,appointment,request,leftoffset,rightoffset)</Body>
  <Parameters>
    <Parameter name=\"factory\"/>
    <Parameter name=\"resource\">
    </Parameter><Parameter name=\"appointment\">
    </Parameter><Parameter name=\"request\">
    </Parameter><Parameter name=\"leftoffset\">
    </Parameter><Parameter name=\"rightoffset\"></Parameter>
  </Parameters>
  <Properties EvaluationInterval=\"P0D\" evaluationcost=\"1\"/>
</Expression>

The following sample shows Least Busy.

<Expression>
  <Body>udf \"LeastBusy\"(factory,resource,appointment,request,leftoffset,rightoffset)</Body>
  <Parameters>
    <Parameter name=\"factory\"/>
    <Parameter name=\"resource\">
    </Parameter><Parameter name=\"appointment\">
    </Parameter><Parameter name=\"request\">
    </Parameter><Parameter name=\"leftoffset\">
    </Parameter><Parameter name=\"rightoffset\"></Parameter>
  </Parameters>
  <Properties EvaluationInterval=\"P0D\" evaluationcost=\"1\"/>
</Expression>

The following sample showsRandom.

<Expression>
  <Body>udf \"Random\"(factory,resource,appointment,request,leftoffset,rightoffset)</Body>
  <Parameters>
    <Parameter name=\"factory\"/>
    <Parameter name=\"resource\">
    </Parameter><Parameter name=\"appointment\">
    </Parameter><Parameter name=\"request\">
    </Parameter><Parameter name=\"leftoffset\">
    </Parameter><Parameter name=\"rightoffset\"></Parameter>
  </Parameters>
  <Properties EvaluationInterval=\"P0D\" evaluationcost=\"0\"/>
</Expression>

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: