I have never used this function Nilan, but I will look into it and see if I can help you out. I would think that there would need to be some sort of workflow or switch that needs to be turned on when a new lead comes into the the system. I also think that you could do this via PHP. If you create a new record via php, you could send an email out to an array of users or a list of users via something like this:
PHP Code:
$result = $client->create(array($sObject));
$message = 'A new record has been created, please login and check it out';
if ($result->success)
{
mail('me@email.com', 'new lead in salesforce', $message);
}
Or you could even run a live query in your script to Salesforce with the new Id that you just created and get the owner ID, which would then get you the email from the Account object and then send the email out to that owner
~Mike
Bookmarks