Update object

Updating an object is actually saving over the old object, in the next example we are going to use our "WY0DQyj9L6 " record, remember that each record is unique so please check your record before testing it out.

We are basically getting the "WY0DQyj9L6" record, setting new info and saving it:

var car = Simbla.Object.extend("Cars");
var query = new Simbla.Query(car);
query.get("WY0DQyj9L6", {

    success: function(car) {
      car.set("car_year", 2016);
      car.set("car_model", "new car");

        car.save(null, {
            success: function(car) {
                 alert("Update succeeded") ;
            },
            error: function(car, error) {
                 alert("Error - update failed" + error.message);
            }
        });
   },
   error: function(car, error) {
      alert("Error - The object was not retrieved successfully" + error.message);
   }
});

About Simbla

We believe that end users know exactly what they need to perform more efficiently and effectively. Simbla allows them to produce game-changing cloud CRM without writing a single line of code.

Simbla is an AI-generated cloud CRM and a no-code development platform that helps non-coders build quick, flexible, efficient solutions quickly and easily.

Our team has years of experience developing sophisticated cloud-based systems. Drawing on that experience, we built a platform that allowed non-coders to create a tailored CRM that exactly fits the business needs without long deployment and without the help of professionals.

It is a no-code platform with an AI layer, capable of reducing the cost of deploying and maintaining a tailored cloud CRM by as much as 90%.