-
Notifications
You must be signed in to change notification settings - Fork 7
[Enhancement] Add ServiceNow Data Handler (Source/Sink) Integration #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add ServiceNowHandler for reading/writing ServiceNow tables - Support multiple authentication methods (Basic, OAuth2, env vars) - Implement auto-table creation for custom tables (u_* prefix) - Add flexible query building (dict filters, encoded queries) - Support insert/update/upsert operations with key_field matching - Add automatic field prefixing for custom tables - Implement batch processing and streaming mode - Add comprehensive test suite with mock-based tests - Add complete documentation in data handler README - Add example tasks for insert and update workflows - Add fluent API support (from_servicenow/to_servicenow) - Update configuration models for ServiceNow sources/sinks
Collaborator
|
@psriramsnc @zephyrzilla please resolve the conflict in lambda_node.py |
bidyapati-p
reviewed
Dec 2, 2025
Collaborator
|
Overall code is looking good to merge, except the conflict. |
psriramsnc
reviewed
Dec 2, 2025
…aSP into scratch/servicenow_handler
bidyapati-p
approved these changes
Dec 2, 2025
psriramsnc
approved these changes
Dec 2, 2025
Collaborator
psriramsnc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
vipul-mittal
approved these changes
Dec 2, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a complete ServiceNow integration for SyGra, enabling workflows to read from and write to ServiceNow tables using the PySNC library. The integration includes a full-featured handler with automatic table creation, multiple authentication methods, flexible querying, and comprehensive documentation.
Explain the features implemented:
Data Handler (
ServiceNowHandler)u_) if they don't exist, including field inference from sample datau_prefix to field names for custom tablesAuthentication & Configuration
SNOW_INSTANCE,SNOW_USERNAME,SNOW_PASSWORD,SNOW_OAUTH_CLIENT_ID,SNOW_OAUTH_CLIENT_SECRET)DataSourceConfigandOutputConfigQuery Building
>=,<=,IN, etc.)Field Type Inference
Automatically infers ServiceNow field types when creating custom tables:
bool→ Booleanint→ Integerstr(≤255 chars) → String (255)str(>255 chars) → String (4000)dict/list→ String (4000, JSON-serialized)Integration API
sygra.data.from_servicenow()andsygra.data.to_servicenow()How to Test the feature
Prerequisites
Test 1: Read from ServiceNow
Expected Result: Reads 10 incidents, analyzes with GPT-4o-mini, creates
u_ai_incident_analysistable, inserts recordsTest 2: Update Existing Records
Expected Result: Reads 5 records from custom table, generates paraphrases, updates same records
Test 3: Verify Auto-Table Creation
Expected Result: Table
u_test_auto_createcreated automatically in ServiceNowScreenshots (if applicable)
N/A
Checklist
Breaking Changes
None. This is a purely additive feature.
Existing workflows are unaffected. New ServiceNow sources/sinks can be added using: