Skip to content

Conversation

@Thrizvi
Copy link

@Thrizvi Thrizvi commented Oct 3, 2025

The script uses the GlideRecord API to interact with the incident table and inserts a new record with the specified values

Check with new and existing incident records in the ServiceNow instance.
Name: FlashEmptyField
Table: Select the table where the field is located (e.g., Incident).
Applies: Specify the field you want to validate (e.g., short_description).
Table: Select the table where the date field is located (e.g., Incident).
Applies: Specify the date field you want to validate (e.g., opened_at).

when a user tries to select a future date in the specified date field, the script will prevent it and display an alert. You should replace 'your_date_field' with the actual name of the date field in your instance.
Table: Specify the table on which you want this UI action to appear (e.g., Incident).
Order: Set the desired order for the UI action's appearance in the list.
Active: Check the box to make the UI action active.
Table: Select the table where you want to create the UI action (e.g., Incident).
This script will get all the Incident which are active
we're update the priority of incidents based on their impact.
Create UpdatePriorityBasedOnImpact.js
we're creating new incident records
Update Incident whose state is open so update the priority
Delete only those incident which are closed
The script uses the GlideRecord API to interact with the incident table and inserts a new record with the specified values
@ravichandra1998g ravichandra1998g self-assigned this Oct 3, 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.

Hello @Thrizvi,

Thanks for your submission. It appears that this pull request contains more files than described in the title. Please review and update the pull request to either remove the extra/unintended files or to update the description to be more comprehensive. Ensure your contributions are meaningful and adhere to the project’s standards. [If applicable: You can create a new branch on your forked repository to avoid accidental inclusions of new commits in the future.]. Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one.

@ravichandra1998g
Copy link
Contributor

  • Please create a descriptive title for the Pull Request.
  • make sure to include only necessary files. you can create a PR for one specific use case and include respective script and read me file.
  • Please note:
    Code snippets reused from the ServiceNow Documentation or API References are acceptable only if they are expanded in a meaningful way (e.g., with additional context, documentation, or variations). Remember: “QUANTITY IS FUN, QUALITY IS KEY.”

@ravichandra1998g
Copy link
Contributor

As a reminder, the general requirements are outlined in the CONTRIBUTING.md file)

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.

2 participants