You need to sign in to do that
Don't have an account?
WT007
<html>
<head>
<script src="connection.js"
type="text/javascript"></script>
<script type="text/javascript">
</head>
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>
</html>