|
|
• To make the objects for which you want to create Data Scanners available to configure in Data Scanner Rules and Data Scan Filters, you must first update the Scan Enabled option in the related Object records.
• Additionally, you can use only the Field records in which the Indexed option is enabled to define Data Scanner Rules.
|
|
|
• Service Board ships with the Captured by Data Scanner and Captured by Data Scanner On fields linked to the Job and Appointment objects by default.
• The In Jeopardy field in the Job object is selected when Captured by Data Scanner fields in Job records or in related Appointment records are selected.
• Updates to the Captured by Data Scanner, Captured by Data Scanner Updated On, and In Jeopardy fields do not trigger HTTP Notifications, and therefore cannot be synced to Salesforce.
|
|
Name
|
Class
|
Description
|
|
|---|---|---|---|
|
matched
|
java.util.List
Elements: java.util.UUID
|
IDs of records in violation of the rule
|
|
|
notMatched
|
IDs of records not in violation of the rule
|
||
|
objectDef
|
com.intalio.core.seed.api.IEntityManagerDefinition
|
Definition of object whose records were scanned
|
|
|
dataScannerId
|
java.util.UUID
|
Data Scanner record ID
|
|
|
scanMode
|
com.servicemax.core.seed.internal.datascan.DataScanMode
|
DataScanMode.full, DataScanMode.onTheFly, or DataScanMode.ruleDisabled
|
|
|
triggeredBy
|
java.util.UUID
|
User ID that triggered the data scan
|
|
import com.intalio.core.seed.api.IEntityManagerDefinition
import com.servicemax.core.Database
import com.servicemax.core.seed.internal.datascan.DataScanMode
class CustomPostAction {
public Object execute(Map params) {
List matchedRecordIds = params['matched']
List notMatchedRecordIds = params['notMatched']
UUID dataScannerId = params['dataScannerId']
DataScanMode scanMode = params['scanMode']
UUID triggeredByUser = params['triggeredBy']
IEntityManagerDefinition relatedObject = params['objectDef']
List matchedRecords = Database.queryAsList("SELECT * FROM ${relatedObject.getFullIdentifier()} WHERE io_uuid IN :matchedIds", [matchedIds: matchedRecordIds])
List notMatchedRecords = Database.queryAsList("SELECT * FROM ${relatedObject.getFullIdentifier()} WHERE io_uuid IN :notMatchedIds", [notMatchedIds: notMatchedRecordIds])
... // do the rest work with the records.
}
}
|
|
• Email notifications are sent only to users with related User records in which the Authenticated and Active check boxes are selected.
• Email addresses are retrieved from the Email field in User Contact records.
• Email & Notifications must be enabled in the active System Setting record. For more information, see Configuring Email Notifications for Service-Board-to-Salesforce Sync Errors.
• The Data Scan Completed record of the Email Notification Request object must be activated. Email templates are defined in this record, which you can update per your requirements.
|