Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Batch Jobs for Activity Plans

          Batch Jobs for Activity Plans

          Batch jobs are automated processes designed to update and manage multiple activity plan records efficiently. Save time, reduce the risk of manual errors, and maintain the integrity and reliability of activity plan data with these jobs. Make sure that all relevant records are updated consistently and accurately by either triggering a job immediately or scheduling it for later.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise and Unlimited Editions with Life Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the Life Sciences Customer Engagement managed package.

          You can find the jobs in the Activity Plan Jobs and Working Days Jobs sections under Activity Plan in the Admin Console. For more information on how to run or schedule a job, see Run Batch Jobs.

          To help you with this task, this video shows how to configure activity plan jobs and general settings in the Admin Console.

          If you aren’t able to watch the video in full screen mode, open the video in a new tab: Watch videoConfigure Activity Plan Jobs and General Settings.

          Job Name Description
          Validate Activity Plans

          Activates and deactivates an activity plan based on its time period. We recommend running it daily.

          • Marks the activity plan as Active if the start date of the activity plan is on or before the current date.
          • Marks the activity plan as Inactive if the end date of the activity plan is before the current date or if the start date is after the current date.
          Update Activity Plan Status

          Processes plans that have passed their due dates, manages the transition between Employee Review and Manager Review stages, cleans up redundant or invalid plan data, such as Provider Activity Goal Measure and Provider Activity Goal records, and updates the plan’s status. We recommend running it daily.

          The job runs if the activity plan status is Employee Review and the Assignee Due Date is before the current date or if the status is Manager Review and the Reviewer Due Date is before the current date.

          Calculate Provider Activity Goal Measures

          Calculates the scheduled and submitted counts for all provider activity goal measures associated with an active activity plan. Updates the Total Scheduled Activity Value and Total Actual Activity Value fields for Provider Activity Goal Measures and Provider Activity Goals. We recommend running it hourly.

          This job considers only active activity plans. Select a territory for running the job. To include inactive activity plans, go to the Inactive tab on the Job: Calculate Provider Activity Goal Measures window, select up to three inactive plans, and run the job.

          Calculate Provider Activity Goal Measures for Shared Activity Plans

          Calculates the scheduled and submitted counts for all provider activity goal measures associated with active shared activity plans. We recommend running it hourly.

          • Verifies all activities linked to the specified territories and activity plans, and retrieves the Provider Activity Goal Measure records.
          • Updates the Total Scheduled Activity Value and Total Actual Activity Value fields for Provider Activity Goal Measures.
          • Retrieves and updates the Provider Account Territory Information records that match the specified territory and account details.
          Reset Provider Account Territory Information

          Resets the provider account territory information associated with inactive provider activity goals. We recommend running it daily.

          • Identifies inactive Provider Activity Goal records with activity plan type Account Goal, Account Goal Shared, or Weighted Territory Goals.
          • Filters Provider Account Territory Information records based on the linked account.
          • Updates the configured fields in the Provider Account Territory Information records to null.
          Calculate Working Days

          Calculates the number of working days for all active activity plans, excluding those with the Account Goal Shared type. We recommend running it daily.

          • Gets configuration details, such as Time Off Territory Settings, Working Days Config, and BusinessHours.
          • Calculates the total possible working hours, and subtracts the hours for Time Off Territory (TOT) and holidays.
          • Accounts for weekends, holidays, and different types of time off, including full days, partial days, and scheduled time slots.
          • Updates the Working Day Count field for the Activity Plan records, rounding to the nearest 0.5 day.
           
          Loading
          Salesforce Help | Article