KWikSync provides robust integration capabilities for connecting ServiceNow with external data sources. This document covers the technical architecture and integration patterns.
\\
External Systems
ERP CRM Custom Other Sources
IntegrationHub
ETL
KWikSync Core
Field Mapping
Transform Validate Load
KWikSync Tables
Projects Tickets Assets Locations ...
\\
KWikSync leverages ServiceNow's IntegrationHub ETL framework:
| Component | Purpose |
|---|---|
| Extract | Pull data from external sources |
| Transform | Apply field mapping and validation |
| Load | Insert/update KWikSync tables |
Requirements:
- IntegrationHub ETL license
- Configured data sources
- Field mapping rules
KWikSync exposes REST endpoints for programmatic access:
| Endpoint | Method | Description |
|---|---|---|
/api/x_kwr_kwiksync/sync |
POST | Trigger manual sync |
/api/x_kwr_kwiksync/status |
GET | Get sync status |
/api/x_kwr_kwiksync/records/{table} |
GET | Retrieve records |
- Trigger - Scheduled job or manual initiation
- Extract - Connect to external source, retrieve data
- Transform - Apply field mapping, validate data
- Load - Create or update records in KWikSync tables
- Log - Record operation in Sync Log
- Detect - Identify changed records
- Extract - Gather modified data
- Transform - Format for external system
- Push - Send to external endpoint
- Confirm - Verify successful delivery
KWikSync uses Customer Key authentication:
- Customer Key issued by KW Corporation
- Key stored securely in Connection Settings
- Key included in all sync operations
- Keys can be rotated on request
- All data transmitted via HTTPS
- Keys encrypted at rest
- Access controlled via ACLs
- Full audit trail maintained
| Table | API Name | Description |
|---|---|---|
| Configuration | x_kwr_kwiksync_configuration |
App settings |
| Projects | x_kwr_kwiksync_projects |
Project records |
| Tickets | x_kwr_kwiksync_tickets |
Work orders |
| Tasks | x_kwr_kwiksync_kw_corp_ticket_tasks |
Task records |
| Assets | x_kwr_kwiksync_assets |
Inventory |
| Locations | x_kwr_kwiksync_locations |
Sites/facilities |
| Deliverables | x_kwr_kwiksync_deliverables |
Project deliverables |
| Table | API Name | Description |
|---|---|---|
| Sync Log | x_kwr_kwiksync_sync_log |
Operation history |
| Field Mapping | x_kwr_kwiksync_field_mapping |
Mapping config |
| Error Log | x_kwr_kwiksync_error_log |
Error tracking |
Failed operations are automatically retried:
| Attempt | Delay |
|---|---|
| 1st retry | 1 minute |
| 2nd retry | 5 minutes |
| 3rd retry | 15 minutes |
| Final | Logged as failed |
All errors are captured in the Error Log with:
- Timestamp
- Error code
- Error message
- Affected record
- Stack trace (if applicable)
To ensure system stability:
| Limit | Value |
|---|---|
| API calls per minute | 60 |
| Records per sync batch | 1000 |
| Concurrent syncs | 1 |
- Schedule wisely - Run syncs during off-peak hours
- Monitor logs - Review Sync Log and Error Log regularly
- Test changes - Use test environments for field mapping changes
- Incremental sync - Sync only changed records when possible
- Error alerts - Configure notifications for sync failures