Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use Xrm.WebApi properties and methods to create and manage records and execute Web API actions and functions in model-driven apps.
Properties
| Property | Description |
|---|---|
| online | Provides methods to use Web API to create and manage records and execute Web API actions and functions in model-driven apps when connected to the model-driven apps server (online mode). |
| offline | Provides methods to create and manage records in model-driven apps in mobile clients while working in the offline mode. |
Methods
When you configure mobile offline, the current client state determines the source for these records. In offline mode, the source is the offline data store. In online mode, the source is the server. If the client is offline-first, use the methods in online to access tables and records that aren't part of the offline profile, as long as the client has network connectivity.
| Method | Description |
|---|---|
| createRecord | Creates a table record. |
| deleteRecord | Deletes a table record. |
| retrieveRecord | Retrieves a table record. |
| retrieveMultipleRecords | Retrieves a collection of table records. |
| updateRecord | Updates a table record. |
| isAvailableOffline | Returns a boolean value indicating whether an entity is present in userâs profile and is currently available for use in offline mode. |
| execute | Execute a single action, function, or CRUD operation. |
| executeMultiple | Execute a collection of action, function, or CRUD operations. |