Skip to content

OfflineOData Upload

OfflineOData Upload action is used to upload local changes to update the OData service. Local changes are data modification actions that was performed on the target offline OData service but not yet uploaded to the backend OData service.

All the properties defined under Action are applicable to this action.

OfflineOData Upload Properties

Property Type Required
Service Service Yes
UploadCategories string[] No
_Type const Yes

Service

The target service


UploadCategories

List of upload categories using which we can selectively upload data.

  • type: string[]

All items must be of the type: string


_Type

  • type: const

The value of this property must be:

"Action.Type.OfflineOData.Upload"

Action Result

The ActionResult of this action is null.


Examples

Upload

{
  "_Type": "Action.Type.OfflineOData.Upload",
  "Service": "/MyMDKApp/Services/MyOData.service"
}

Selective upload

{
  "_Type": "Action.Type.OfflineOData.Upload",
  "Service": "/MyMDKApp/Services/MyOData.service",
  "UploadCategories": [
    "Customer",
    "Product"
  ]
}