You need to sign in to do that
Don't have an account?
D0ubleStakked
implementing a background process in salesforce
Hi,
I have an application that replicates data over to Salesforce periodically.
I've currently implemented this as a background process in my application, and what I don't like is that it requires storing salesforce credentials inside of my application.
What I'd like to do is to implement a background process in Salesforce, if possible, and let that background process initiate the replication.
Is it possible to implement a background process in Salesforce?
Thanks,
Brian
Why not use Data Loader to move the data into salesforce? You can use an encrypted password, which should give you a much higher level of security.
Hope this helps.
- Rick Greenwald
Developer Evangelist
Thanks for the quick response, Rick.
Is the Data Loader something that would be available through the WebService API?
I'm not that familiar with the Data Loader, and I need the data to be replicated several times a day.
Thanks again,
Brian
- Rick Greenwald
Developer Evangelist
Thanks Rick. That's definitely the route that I am thinking.
For the "call away" part, if I want SFDC to call my webservice at regularly scheduled intervals throughout the day, is that possible?
I know that I can implement the call to my webservice within an S-Control and bind that to a custom button or link on the page, but the actually execution of that call is dependent upon the user clicking the button. I'm hoping to avoid needing the SFDC user to initiate the call, and I also want to avoid storing any user credentials outside of SFDC.
In the end, I may not be able to avoid storing user credentials in my app, and I'm ok with that. It just adds complexity to the configuration.
Thanks again for all your help, Rick
-Brian
This article details how you can schedule a workflow to run at a specific time. (Don't worry about the date granularity - in Summer '07, you can set a time-based workflow in terms of hours.) Using this scheme, you could add the Salesforce SOA code as part of the trigger.
So crazy it just might work.
- Rick Greenwald
Developer Evangelist
Thanks Rick.
That's a great feature to have in SFDC. I can see a lot of places where I'd like to use that.
Do you know if its possible to have those time-based workflow repeat automatically? So "repeat every 2 hours after the Opportunity reaches a probability of > 80%"
-Brian
But my guess is that you wouldn't want this to repeat indefinitely, so after a certain number of iterations, you would want to have a different type of action, like an escalation.
Hope this helps.
- Rick Greenwald
Developer Evangelist
Message Edited by RickyG on 08-20-2007 04:45 AM