[This is preliminary documentation and is subject to change.]
Overrides CreateEntity(DynamicEntity, ExecutionOptions) and adds the objecttypecode field, if needed.
Namespace:
CWR.MSCRM.Mobile.Client.BLAssembly: CWR.MSCRM.Mobile.Client.BL (in CWR.MSCRM.Mobile.Client.BL.dll)
Version: 4.0.0.7
Syntax
| C# |
|---|
public override Guid CreateEntity( DynamicEntity entity, ExecutionOptions executionOptions ) |
| Visual Basic (Declaration) |
|---|
Public Overrides Function CreateEntity ( _ entity As DynamicEntity, _ executionOptions As ExecutionOptions _ ) As Guid |
Parameters
- entity
- Type: DynamicEntity
DynamicEntity object containing the properties to create.
- executionOptions
- Type: CWR.MSCRM.Mobile.Client.Helpers..::.ExecutionOptions
ExecutionOptions object containing the options on how to execute this method.
Return Value
The entity id of the newly created entity.
Exceptions
| Exception | Condition |
|---|---|
| CWR.MSCRM.Mobile.Client.Helpers.Exceptions..::.CalloutException | Throws a CalloutException when the PreCreate(CalloutEntityContext, DynamicEntity, String%) callout returns Abort. |
| CWR.MSCRM.Mobile.Client.Helpers.Exceptions..::.SyncException | Throws a SyncException when the server throws a SoapException or an unexpected exception during the execution of the Create process. |
