Scheduling a DAP Job

Last published at: November 1st, 2024
Delete

Scheduling a DAP Job is available for the Premium and PDM editions of DAP.

You can schedule a DAP Job‍ to be repeated at regular intervals, such as every day or every month.

Note that jobs on DC or RV Job Results cannot be scheduled.

Getting access to scheduling jobs

First, make sure you or your users have permissions to schedule jobs.

  1. Go to DAP Setup > Action Library
  2. Click Assignment  at the action you want to use.
  3. At your Profile or User, at Enable Action For, make sure the "Scheduled Job" option is added.

Read more about granting permissions in The Action Library.

Scheduling a Job

To schedule a DAP Job:

  1. Go to DAP Job.
  2. At top right, click + New Job.
  3. Enter a Job Name. As the job might be in use for quite some time, make sure the name is descriptive of what the job does.
  4. Select the Object that the job should run on.
    Note that jobs on RV or DC Job Results, or on Reports, cannot be scheduled.
  5. If desired, add a filter to run the job on a selection of records.
  6. Click + Add Schedule.
  7. Select a Job Frequency: daily, weekly or monthly.
  8. Depending on the selected frequency, add a time and other frequency options.
    This job will run every week, on Monday and Thursday, at 4 PM.
  9. Click Next.
  10. Set up the job action: select an action and configure it. See DAP Job‍ for more information.
Delete

Not all action settings available

Currently the action-specific settings of the Assign Ownership action are not available yet for scheduled jobs. These will be added in the near future.

  1. On the summary page, review the schedule and other configurations.
  2. Click Schedule to schedule the job.
Delete

Job Frequencies

  • Daily: The job will run every day at the set time. This includes week-end days. To run a job on weekdays only, select Weekly instead, and tick the weekdays.
  • Weekly: The job will run every week on the selected days. Use this option to run a job one or more times per week.
  • Monthly: The job will run once a month on the selected day. Note that when you pick day 29, 30 or 31, the job will not run in months that do not have that many days. Alternatively, select 'Last day' to have the job always run on the last day of the month.

Note that the selected time is an indication. The job will be scheduled by Salesforce to run at the requested time, but it may be delayed by Salesforce based on service availability.

Scheduled Job Overview

Upon scheduling you are forwarded to the Scheduled Job Overview page. The scheduled job you just created is shown here inbetween the other scheduled jobs.

The Scheduled Job Overview shows you the main details of the scheduled jobs, such as which action they will perform and when the next run is set to start. Click Info button to see more information about a scheduled job.

Next to the Info button you can find more options under Job Options:

 
Deactivate Deactivate a scheduled job to temporarily pause it. Deactivating will stop a job from recurring, but its data will be kept. To re-activate a deactivated job, click Activate.
Run once now Run a job once, independent of its schedule.
Edit Edit a scheduled job to make changes to its configuration.
Delete Delete a scheduled job if you no longer need it.

The scheduled job overview with the Job Options menu open

Run Jobs in the Job Overview

When a scheduled job has run, the details of that single run are shown in the regular Job Overview. To switch between the Scheduled Job Overview and the run Job Overview, click on the downward arrow next to the overview title.

In the regular Job Overview, you will see the individual runs of the scheduled jobs that have run, as well as an announcement of any scheduled jobs that are set to run today. Just like with single-run jobs, click on Info to see more information on the run job.

Direct Action, Scheduled Job, or Macro?

Direct Actions‍, Scheduled Jobs‍ and Macros‍ are all used to execute a predefined action multiple times.

  • Use a Direct Action to apply an action to one or more records whenever they are created, updated or (un)deleted, without any user interference
  • Use a Scheduled Job to run an action on a static or dynamic selection of records repeatedly without any user interference, following a set schedule.
  • Use a Macro to run an identical action whenever you want to run it; to let several users run the same action with the exact same configuration; or to let users with limited rights perform one specific action without giving them access to the full action.