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
WT007WT007 

Newbie question about lead update

Hello,
 
I found this code somewhere on the message boards, it is close to what I need to do on our webserver in order to update.   How do I obtain the included javascript file?    We already have partner WSDL on our server.
 
 
 
<html>
  <head>
  <script src="connection.js"
          type="text/javascript"></script>
<script type="text/javascript">
 function initPage() {
var mylead = new sforce.SObject("Lead");
mylead.Id = "00N50000001SCnZ";
mylead.Times_Called__c == {!Lead.Times_Called__c} + 1;
sforce.connection.update([mylead]);
}
</script>

</head>
<body onLoad="initPage();">
</body>
</html>