ODataService Draft Save¶
DraftSave action is used to prepare and activate a draft in the specified OData service.
ODataService Draft Save Properties¶
Property | Type | Required |
---|---|---|
Headers | object |
Optional |
Target | LinkQueryTarget | Optional |
_Type | const |
Optional |
Headers¶
Custom headers to be included as part of the request to the OData Service in key/value pair format
- type:
object
Target¶
This action can only be executed on a single entity. therefore the Target specifier must be configured to return only 1 entity, otherwise this action will fail
- type: LinkQueryTarget
_Type¶
- type:
const
The value of this property must be equal to:
"Action.Type.ODataService.DraftEnabled.Edit"
Any following options needs to be fulfilled.
Option 1¶
Action Result¶
The ActionResult of this action is a JS object containing the entity.
Examples¶
Activate a draft and update the active entity.¶
{
"_Type": "Action.Type.ODataService.DraftEnabled.Save",
"Target": {
"Service": "/MyMDKApp/Services/MyOData.service",
"EntitySet": "Customers",
"ReadLink": "{@odata.readLink}"
}
}