Provider icon

How to dynamically schedule a periodic job on Salesforce?

Salesforce is an American cloud-based software company headquartered in San Francisco, California. It provides customer relationship management (CRM) software and applications focused on sales, customer service, marketing automation, analytics, and application development.

When using that application, you may face the need to run periodic jobs within this platform. To achieve that, there are multiple solutions.

Schedule in Salesforce

Salesforce has a tool called the APEX Scheduler, which allows you to schedule recurring tasks within the tool's web interface. To use it, simply go to the admin menu and choose the "APEX Scheduler" option. All you will have to do is indicate which portion of Apex code you want to call, and at what interval.

Schedule with Cronit

However, there may be situations where you do not have a specific piece of APEX code that you want to contact. In this case, it may be worth considering the use of an external tool. With Cronit, for example, it will be possible to interact with Salesforce through the HTTP API instead of an APEX code snippet. To define a recurring task in Cronit, simply go to our web interface, select "New Cron", and define the call parameters for the Salesforce API.