You need to sign in to do that
Don't have an account?

Simple Ajax Login Question
Greetings,
I'm creating some custom buttons to automate constantly repeated actions at my work. For example, a voicemail buttons which saves you the trouble of creating a task, linking it up, filling in "Left vm" for the subject. The button does all that for you in 1 click.
I'm using javascript through the API to create the records in our database.
My question:
How do you insert the user's login and password into the login call
sforce.connection.login(login , password);
Up to now, I've just used my own login/pw to design and test the system.
I would think there might be a pw mergefield, but I can't seem to find it.
Thanks,
Dave
I'm creating some custom buttons to automate constantly repeated actions at my work. For example, a voicemail buttons which saves you the trouble of creating a task, linking it up, filling in "Left vm" for the subject. The button does all that for you in 1 click.
I'm using javascript through the API to create the records in our database.
My question:
How do you insert the user's login and password into the login call
sforce.connection.login(login , password);
Up to now, I've just used my own login/pw to design and test the system.
I would think there might be a pw mergefield, but I can't seem to find it.
Thanks,
Dave
<html>
<head>
<script src="/soap/ajax/9.0/connection.js" type="text/javascript"></script>
<script>
function init()
{
//something useful in here
}
</script>
</head>
<body onload="init();">
</body>
</html>
Once you include the connection.js you are all set to use the Ajax connection. All calls will be made via the logged-in user that executes the S-Control, so be aware of read/write restrictions.
Thats exactly the info I needed.