0

Query :

INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country)
VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen 21', 'Stavanger', '4006', 'Norway');

I can get data using "Select Query " in Salesforce WSDL file. At same way can i use query based CRUD Operations in Salesforce.

QueryResult queryResult = null;
String SOQL = "";
string productid = "";   
SOQL = "select Id from Product2 where ProductCode = 'Test'";
queryResult = sfdcBinding.query(SOQL);
1
  • I don't think you can use WSDL in Jquery. You can try sForce library. Dec 13, 2017 at 9:47

1 Answer 1

1

SOQL is query only. It won't perform inserts, updates, or deletes. Those are referred to as Data Manipulation Language (DML) operations instead and are handled by separate API methods.

Instead you should use create() or upsert() to create new records via the APIs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .