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
cooldamselcooldamsel 

[Urgent]Alternative for Time based workflow!!!!

Hi,

In our organisation, we are trying to package our app. So we have inlcuded the components needed for packaging. But when uploading our package, we are getting the following error: "Workflow rules with Time Triggers cannot be uploaded to the AppExchange".
We found that time based workflows cannot be used when packaging. Is there any alternative to achieve the time based workflow? Please suggest.

Thanks in advcance,
CoolDamsel
EnreecoEnreeco
Hi,
you can use an Apex Batch Job (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm) in conjunction with an Apex Scheduler (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm): that is to say you will write and apex class that will elaborate records in batch (so you have to use a query that can load all the records that are in the same condition of your time based workflow) and that schedule will execute the batch job every hour (of at least once a day?).
This requires apex development skills.
Hope this helps
--
May the Force.com be with you!