The Telerik Platform product is retired.Learn more

Creating Data Items

Creating Data Items

The Backend Services iOS SDK allows you to create a single data item in a single method call.

Creating items is as easy as instantiating objects and passing them to the create method. Of course, all objects you pass to the methods must be defined according to the Telerik Platform Data Model.

Once the items are created, the server will return the newly generated IDs along with the CreatedAt date of the server. The values will be automatically set to the objects you passed.

Activities *activity = [[Activities alloc]init];
activity.text = @"Sailing";

EVDataStore *dataStore = [EVDataStore sharedInstance];
[dataStore create:activity block:^(BOOL success, NSError *error) {
Contact us: +1-888-365-2779
Copyright © 2016-2018, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.