Integrating Two ServiceNow PDIs Using REST API: A Step-by-Step Guide
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2025 03:06 AM
Step 1: Prepare Your PDIs
- Ensure both PDIs are active and accessible.
- Note down:
- Instance URLs
- Admin credentials
- Target table (e.g., incident)
Step 2: Create an API User on Target PDI
- Navigate to User Administration > Users
- Create a user (e.g., api_user)
- Assign the web_service_admin or rest_service role
Step 3: Configure Basic Authentication
- Go to System Web Services > Outbound > REST Message
- Create a Basic Auth Profile using the target PDI credentials
Step 4: Create REST Message in Source PDI
- Navigate to System Web Services > Outbound > REST Message
- Create a new REST Message:
- Endpoint URL: https://<target_instance>.service-now.com/api/now/table/incident
- Add HTTP Method: POST or GET
Step 5: Attach Authentication Profile
- Link the Basic Auth Profile to your REST Message
- Ensure headers like Content-Type: application/json are added
Step 6: Test the Integration
- Use the Preview Script to send a sample request
- Verify the record creation or retrieval in the target PDI
Step 7: Automate with Flow Designer (Optional)
- Use Flow Designer to trigger REST Message on events like:
- New incident creation
- Record updates
1 REPLY 1