create_sn_integration_artifacts
Creates all required ServiceNow artifacts for a bidirectional integration: correlation table, retry table, sync flags, REST message, business rule, scripted API, UI action, and client script.
Instructions
Create all ServiceNow-side artifacts for a bidirectional integration:
Correlation table (cross-platform ID tracking)
Retry/error table (dead-letter queue for failed syncs)
Sync-in-progress flag field (loop prevention)
sys_properties entry (field mapping config)
Outbound REST Message + HTTP method (for SN→external calls)
Business Rule (fires on record change, calls outbound REST)
Scripted REST API + POST operation (inbound endpoint for external→SN)
UI Action "Sync Now" button
Client Script (shows sync status on form)
Requires the integration plan from design_integration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | The plan object returned by design_integration | |
| target_url | No | Base URL of the target platform API (e.g. https://your-domain.atlassian.net) | |
| target_api_key | No | API key or token for the target platform (stored in Named Credentials later) |