How can I change the scheduled scan settings in the custom object?

Once the scheduled job is created, you can modify its settings in the AFSC__FS_ManualScanSetting__c custom object, which stores settings for the manual and scheduled scan jobs.

To modify the scheduled scan settings:

  1. Open Setup > Developer Console.
  2. Select File > Open. The Open window is displayed: Query1.png
  3. In the Open window, select Objects from the left column and, in the Filter field, type in FS_ManualScanSetting. The desired object is shown in the middle column.
  4. To open the custom object, click the Open button.

    The following panel is displayed:


  5. Click the Query Editor tab, type the following query in the edit box: SELECT Id, Name, AFSC__Settings__c FROM AFSC__FS_ManualScanSetting__c and finally click the Execute button.

    A list of query results are displayed:


  6. From the query results, select the record with name Scheduled Scan Settings.

    Note: If the Scheduled Scan Settings record is not shown in the query results, it means that the scheduled scan job has not yet been created. To create a scheduled scan job, see article How can I create and configure a scheduled scan with F-Secure Cloud Protection?

  7. Double-click the AFSC__Settings__c field and select its contents. The field contains scheduled scan settings in JSON format. Copy and paste the JSON string to a text editor, such as or to see and modify the JSON string in a more readable format.

    An example of the JSON string (formatted with jsonviewer) with scheduled scan job settings:

        "scanOnCreatedDate": true,
        "scanForHarmfulContent": true,
        "scanForDisallowedContent": true,
        "scanFiles": true,
        "scanDateTo": "2018-09-06",
        "scanDateFrom": "2018-09-01",
        "scanAttachments": true,
        "scanAllLocations": false,
        "replaceHarmfulFiles": true,
        "replaceDisallowedFiles": true,
        "maxScanFileNumber": 1000,
        "lastDaysToScan": 30,
        "extensionsToScan": [
                "extensionName": "docx"
                "extensionName": "xlsx"
                "extensionName": "xls"
                "extensionName": "foo"
                "extensionName": "pptx"
                "extensionName": "ppt"
                "extensionName": "doc"
                "extensionName": "pdf"
        "disallowedTypes": [
                "extensionName": "exe"
                "extensionName": "ps1"
                "extensionName": "vbs"
        "attachmentsLocations": [],
        "allowSetSha1ForContentVersions": true,
        "alertOnHarmfulContent": true,
        "alertOnDisallowedContent": true,
        "actionOnHarmfulContent": "Passed",
        "actionOnDisallowedContent": "Passed"
  8. Modify the settings based on your needs.

    To change the date range within which the created or modified files are to be scanned, modify the "lastDaysToScan" setting. Set it to N+1 days where N is the desired period to be scanned. An example: To scan files/attachments created or modified within the previous week, set "lastDaysToScan" setting as follows: "lastDaysToScan":8

    Note: The value of the "actionOnHarmfulContent" and "actionOnDisallowedContent" settings can be either "Passed" or "Removed".

  9. Once you have made your changes, minimize the JSON string and put it to the AFSC__Settings__c field of the Scheduled Scan Settings record in the Developer Console:


  10. To save the changes and commit them to the database. click the Save Rows button.
The new scheduled scan settings will be taken into use next time the scheduled scan job is executed.
Pricing & Product Info

For product info and pricing please go to the F-Secure product page

Version history
Revision #:
4 of 4
Last update:
‎03-04-2019 02:09 PM
Updated by: