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:
- Open Setup > Developer Console.
-
Select
File > Open.
The Open window is displayed:
-
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. -
To open the custom object, click the
Open button.
The following panel is displayed:
-
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:
-
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?
-
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
https://jqplay.org/ or
http://jsonviewer.stack.hu/ 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" }
-
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"
. -
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:
- To save the changes and commit them to the database. click the Save Rows button.