[This is preliminary documentation and is subject to change.]

Overrides SetStateEntity(Guid, String, Int32, Int32, ExecutionOptions) and adds calculation of actualstart, actualend and actualdurationminutes.

Namespace:  CWR.MSCRM.Mobile.Client.BL
Assembly:  CWR.MSCRM.Mobile.Client.BL (in CWR.MSCRM.Mobile.Client.BL.dll)
Version: 4.0.0.7

Syntax

C#
public override void SetStateEntity(
	Guid entityId,
	string state,
	int numericState,
	int status,
	ExecutionOptions executionOptions
)
Visual Basic (Declaration)
Public Overrides Sub SetStateEntity ( _
	entityId As Guid, _
	state As String, _
	numericState As Integer, _
	status As Integer, _
	executionOptions As ExecutionOptions _
)

Parameters

entityId
Type: System..::.Guid
The entity id.
state
Type: System..::.String
The state, e.g. "Active".
numericState
Type: System..::.Int32
Numeric state, e.g. 0.
status
Type: System..::.Int32
The status, e.g. 5 ("Busy").
executionOptions
Type: CWR.MSCRM.Mobile.Client.Helpers..::.ExecutionOptions
ExecutionOptions object containing the options on how to execute this method.

Exceptions

ExceptionCondition
CWR.MSCRM.Mobile.Client.Helpers.Exceptions..::.CalloutExceptionThrows a CalloutException when the PreSetState(CalloutEntityContext, String%, Int32%, Int32%, String%) callout returns Abort.
CWR.MSCRM.Mobile.Client.Helpers.Exceptions..::.SyncExceptionThrows a SyncException when the server throws a SoapException or an unexpected exception during the execution of the SetState request.

See Also