You need to sign in to do that
Don't have an account?
Scheduled Apex class call external web service and pass session id
Hi,
We have a composite application which does some batch processing inside of SF.
Our customers would now like to schedule those batch jobs to run at particular times.
The problem I am having is how will the batch job establish a session with Salesforce.
The only way that I see is if we store the username and password of our users with us which I do not want to do.
Is there any way for our users to schedule an Apex class within SF which invokes a webservice at our end passing in session id so that we can connect to SF?
Or is there any better suggestions on how to achieve the taks without storing the usernames and passwords?
Thanks,
Kos
Take a look at OAuth.
http://blogs.developerforce.com/developer-relations/2011/03/digging-deeper-into-oauth-20-at-salesforcecom.html
All Answers
Take a look at OAuth.
http://blogs.developerforce.com/developer-relations/2011/03/digging-deeper-into-oauth-20-at-salesforcecom.html
Thanks Cory,
I think that will be a better option than asking for usernames and password.
It does not seem as trivial to implement but will give it a try.
Regards,
Kos