Activity Forums Salesforce® Discussions How can we perform dml operations in visualforce page?

  • Prakhar

    Member
    July 20, 2016 at 3:12 pm

    Hi Pranav,

    If you want to perform DML operation on Vf page, you can use sforce.connection in your javascript and then perform your required DML operations.

    For Example:- if you want to insert the records, the use below format:-

    var instanceOfRecord = new sforce.SObject('Name of Object');
    var results = sforce.connection.create([instanceOfRecord]);

    Thanks.

  • Shekhar Gadewar

    Member
    July 21, 2016 at 12:50 pm

    Please use sforce for this

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos