function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pDaisiespDaisies 

AJAX Libraries on the JS

Can someone point me to the JS libraries so I know what methods are available?

I'm trying to implement the AJAX toolkit with some knowledge of the API, some knowledge of Javascript, but no clue how to create a task, for instance, with the toolkit.

Anyone?
cheenathcheenath
You can find the doc for AJAX Toolkit 8.0 here:

http://www.salesforce.com/us/developer/docs/ajax/apex_ajax.pdf

Code below shows how to create make the create call:

 var account = new sforce.SObject("Account");
  account.Name = "my new account";
  var result = sforce.connection.create([account]);

  if (result[0].getBoolean("success")) {
    log("new account created with id " + result[0].id);
  } else {
    log("failed to create account " + result[0]);
  }


HTHs