function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rohit2006Rohit2006 

Periodic running of s-control

Hi all,
 Is there any way by which I can set an s-control to run periodically?
This has become quite significant for me.
Thanks very much.
hemmhemm
Well, you can't schedule a  s-Control to run within Salesforce.com right now.  You will need to schedule a script to run outside of Salesforce.com and connect to it via the API.  This can be written in Java, PERL, PHP, etc.

If you already have an s-Control written in JavaScript, then I'd suggest you check out the Scripting Toolkit on AppExchange.  Salesforce Labs created a way for you to put your AJAX toolkit based s-Controls on your own machine and run them via a command line.  It's pretty slick.  You'll need to find a machine to run these on, but this could be scheduled.

Message Edited by hemm on 05-23-2007 10:37 AM

Always ThinkinAlways Thinkin
Although it's not much use until Apex scripting is available on non-dev accounts, Steve from gokubi.com came up with a way to run scheduled scripts here: http://gokubi.com/archives/daily-cron-jobs-with-apex

So if you can put off the necessary development for a few 6 or 7 months until Apex arrives...

Message Edited by Always Thinkin on 05-25-2007 12:04 PM