<script src="/soap/ajax/18.0/connection.js"></script>
<script>
sforce.connection.sessionId = "{!$Api.Session_ID}";
function go()
{
var acct= new sforce.SObject("Account");
acct.name = 'Hi';
acct.phone = '515-123-4567';
var result = sforce.connection.create([acct]);
alert('hello'+acct);
}
</script>
No comments:
Post a Comment