Skip to content

Conversation

@Maheshkh9738
Copy link
Contributor

PR Description:

it automatically offers to fill in fields based on the user's most recent similar request.

Pull Request Checklist

Overview

  • Put an x inside of the square brackets to check each item.
  • I have read and understood the CONTRIBUTING.md guidelines
  • My pull request has a descriptive title that accurately reflects the changes and the description has been filled in above.
  • 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:
    • Core ServiceNow APIs/
    • Server-Side Components/
    • Client-Side Components/
    • Modern Development/
    • Integration/
    • Specialized Areas/
  • 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

@rohi-v rohi-v self-assigned this Oct 17, 2025
@Maheshkh9738 Maheshkh9738 changed the title Mkh Autofill from Recent Request Oct 17, 2025
@Maheshkh9738
Copy link
Contributor Author

Recent Request Autofill for ServiceNow Catalog.it automatically offers to fill in fields based on the user's most recent similar request. Features

Detects previous requests for the same catalog item
Prompts user to reuse values from their last submission
Autofills fields like location, department, and justification

@rohi-v
Copy link
Contributor

rohi-v commented Oct 17, 2025

Hi @Maheshkh9738

Everything looks good, please check the review comments for minor changes.

Please add '.js' to the script related files with a valid name.

Sample - Client-Side Components/Catalog Client Script/Autofilling the request details from previous request/GetRecentRequestValues.js

@Maheshkh9738
Copy link
Contributor Author

Hi Rohi, I have updated the name

@rohi-v
Copy link
Contributor

rohi-v commented Oct 17, 2025

I can still see the script include not renamed, can you please update it

I have requested few more changes in the code.

  • Please change the variable name from gr to something that is relevant
  • Add comment in your code or readme file to change the variable names that are required to auto populate in the script include file.

@Maheshkh9738 please check updated comment

@Maheshkh9738
Copy link
Contributor Author

Hi Rohi, I have updated the name

@rohi-v
Copy link
Contributor

rohi-v commented Oct 17, 2025

Hi @Maheshkh9738

Apologies for the confusion, please recheck the updated comments

@rohi-v
Copy link
Contributor

rohi-v commented Oct 18, 2025

@Maheshkh9738 Any update on the requested changes?

@rohi-v
Copy link
Contributor

rohi-v commented Oct 18, 2025

Hi @Maheshkh9738

The code looks good and the changes recommended are best practices to follow.

Approving the changes. Thank You for your Contribution.

@rohi-v rohi-v merged commit f9dbfbe into ServiceNowDevProgram:main Oct 18, 2025
1 check passed
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