{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":47598,"path":"servicenow-platform/knowledge-management/configure-scheduled-job-ssa.md","title":"Configure scheduled jobs for Self-Service Analytics","bundle":null,"doc_type":null,"release":"australia","body":"\n# Configure scheduled jobs for Self-Service Analytics\n\nSchedule when to run the deflection configuration to generate the activities that match an activity pattern within an activity window.\n\n## Before you begin\n\n[Set up the deflection configuration for Self-Service Analytics](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/knowledge-management/configure-deflection-ssa.md).\n\nRole required: admin\n\n## About this task\n\nYou configure the duration of processing the deflection configuration for a user entity. This configuration is optional for consumers and customer contacts. The scheduled job captures data for Self-Service Analytics and stores the generated data in the Deflection Metric \\[ssa\\_deflection\\_metric\\] table.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Scheduled Jobs**.\n\n2.  Configure the scheduled script processed for a user entity in a scheduled job.\n\n    -   For consumers, select **Deflection Analytics for Consumers**.\n    -   For customer contacts, select **Deflection Analytics for Contacts**.\n    -   For user entities other than consumers and customer contacts, click **New** and select **Automatically run a script of your choosing** to create another scheduled job or modify an existing schedule job.\n3.  On the Scheduled Script Execution form, verify the default field values for consumers and customer contacts or fill in the values for a custom configuration.\n\n<table id=\"table_e3d_ccq_jlb\"><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nName\n\n</td><td>\n\nName to identify the scheduled script execution.\n\n</td></tr><tr><td>\n\nActive\n\n</td><td>\n\nOption to activate the script at the scheduled date and time. By default the job is inactive.\n\n</td></tr><tr><td>\n\nRun\n\n</td><td>\n\nType of schedule to execute the script on. Choices are:-   Daily\n-   Weekly\n-   Monthly\n-   Periodically\n-   Once\n\n\n</td></tr><tr><td>\n\nDay\n\n</td><td>\n\n-   If you select **Weekly** as the **Run** value, the day of the week.\n-   If you select **Monthly** as the **Run** value, the day of the month.\n\n\n</td></tr><tr><td>\n\nRepeat Interval\n\n</td><td>\n\nIf you select **Periodically** as the **Run** value, the duration between each script execution.**Note:** This setting does not account for Daylight Savings Time changes. For example, if you select a period of one day, this adds 24 hours to the starting time of the job. If the start time was configured during a period with Daylight Savings Time, the job executes with a one hour offset on days when that time zone is not in Daylight Savings Time.\n\n</td></tr><tr><td>\n\nTime\n\n</td><td>\n\nIf you select **Daily**, **Weekly**, or **Monthly** as the **Run** value, the time of day, based on a 24-hour clock.\n\n</td></tr><tr><td>\n\nStarting\n\n</td><td>\n\nDate and time of the first scheduled script execution.\n\n</td></tr><tr><td>\n\nApplication\n\n</td><td>\n\nApplication that contains the script.\n\n</td></tr><tr><td>\n\nConditional\n\n</td><td>\n\nOption to run a scheduled job if certain conditions are met in the associated script.\n\n</td></tr><tr><td>\n\nCondition\n\n</td><td>\n\nConditional script that determines whether a scheduled job must run. The last expression of the script should evaluate to a Boolean \\(true or false\\) value. This field appears only when the **Condition** check box is selected.\n\n</td></tr><tr><td>\n\nRun this script\n\n</td><td>\n\nScript to run at the scheduled date and time.For a new scheduled script, copy the script from the existing script \\(Deflection Analytics for Consumers or Deflection Analytics for Contacts\\) and modify the `deflectionAnalyticsService.captureDeflectionAnalytics('*sys\\_ID*')` field value to include the sys\\_id of your deflection configuration record. For information about identifying the sys\\_id, see [The unique record identifier \\(sys\\_id\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_UniqueRecordIdentifier.md).\n\n</td></tr></tbody>\n</table>4.  Click **Update** for consumers and customer contacts or **Submit** to save a custom configuration.\n\n\n**Parent Topic:**[Configure Self-Service Analytics](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/knowledge-management/config-ssa.md)\n\n"}}