Activity › Forums › Salesforce® Discussions › How can we perform dml operations in visualforce page? Tagged: DML Operation, DML Operations, Javascript, Salesforce Records, Salesforce Visualforce, Salesforce Visualforce Page Salesforce® Discussions How can we perform dml operations in visualforce page? Posted by PRANAV on July 20, 2016 at 2:16 PM Hi All, How can we perform dml operations in visualforce page? Thanks Shekhar Gadewar replied 9 years, 9 months ago 3 Members · 2 Replies DML OperationDML OperationsJavascriptSalesforce RecordsSalesforce VisualforceSalesforce Visualforce Page 2 Replies 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. [adinserter block='9'] Shekhar Gadewar Member July 21, 2016 at 12:50 PM Please use sforce for this Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me