Skip to content

Conversation

@anurampalli
Copy link
Contributor

@anurampalli anurampalli commented Oct 7, 2025

...incidents in the correct domain


PR Description:

This pull request adds a Scripted REST API for ServiceNow that creates Incident records in the domain and company of the authenticated user. The API was developed as part of a Hacktoberfest 2025 contribution and is intended for educational and demonstration purposes. The create method ensures incidents are scoped to the user's domain, supporting multi-tenancy and domain separation best practices.

Pull Request Checklist

Overview

  • I have read and understood the CONTRIBUTING.md guidelines
  • My pull request has a descriptive title that accurately reflects the changes
  • I've included only files relevant to the changes described in the PR title and description
  • I've created a new branch in my forked repository for this contribution

Code Quality

  • My code is relevant to ServiceNow developers
  • My code snippets expand meaningfully on official ServiceNow documentation (if applicable)
  • I've disclosed use of ES2021 features (if applicable)
  • I've tested my code snippets in a ServiceNow environment (where possible)

Repository Structure Compliance

  • I've placed my code snippet(s) in one of the required top-level categories:
    • Server-Side Components/
  • I've used appropriate sub-categories within the top-level categories
  • Each code snippet has its own folder with a descriptive name

Documentation

  • I've included a README.md file for each code snippet
  • The README.md includes:
    • Description of the code snippet functionality
    • Usage instructions or examples
    • Any prerequisites or dependencies
    • (Optional) Screenshots or diagrams if helpful

Restrictions

  • My PR does not include XML exports of ServiceNow records
  • My PR does not contain sensitive information (passwords, API keys, tokens)
  • My PR does not include changes that fall outside the described scope

...incidents in the correct domain

---

## 📄 License
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that this is AI generated but please proof-read. A file cannot be MIT licensed when the repository itself is not. please remove this section.

Copy link
Contributor Author

@anurampalli anurampalli Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Sorry about that, Earl — I usually select the MIT License for repositories on my GitHub account by default. It’s just a habit I picked up and didn’t realize it doesn’t apply to the code-snippets repo.

Removed
1. Reference to Hacktoberfest
2. Removed PR Checklist which I included accidentally
3. Removed License information.
removed reference to Hacktoberfest
1. Removed all references to Hacktober fest
2. Removed PR Template
3. Added Prerequisites & Dependencies
@anurampalli anurampalli requested a review from earlduque October 8, 2025 01:36
@ravichandra1998g ravichandra1998g self-assigned this Oct 8, 2025
Copy link
Contributor

@ravichandra1998g ravichandra1998g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making the changes!
looks good now!

@ravichandra1998g ravichandra1998g dismissed earlduque’s stale review October 8, 2025 02:01

changes made accordingly.

@ravichandra1998g ravichandra1998g merged commit 40dc1cf into ServiceNowDevProgram:main Oct 8, 2025
@anurampalli
Copy link
Contributor Author

Thank you Earl and Ravi for reviewing the PR and merging it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants