Skip to content

Latest commit

Β 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

NetSuite Script Formatter 🧾

A simple Python GUI application that helps format NetSuite Saved Search scripts. Designed for consultants, developers, and NetSuite admins, this tool makes it easy to generate a properly structured search.create. It is based on the wonderful work by Chidi Okwudire on his NetSuite Insights Blog

✨ Features

  • πŸ“ Paste your NetSuite Saved Search creation code
  • πŸ”€ Add a custom search name, ID, and description
  • πŸ”„ Automatically generate a formatted require(['N/search'], function(search) { ... }) script
  • πŸ’Ύ Save the result as a JavaScript file
  • πŸ‘€ Preview the formatted script before saving
  • 🧹 Clear the form easily for multiple use cases

πŸ–₯️ Screenshot

image

πŸš€ Getting Started

Requirements

  • Python 3.x
  • Tkinter (usually comes pre-installed with Python)

Installation

Clone the repo:

git clone https://github.com/stephenmcgurrin/Saved-Search-Deployment-Generator.git

Navigate to folder:

cd Saved-Search-Deployment-Generator

Run the script:

python SavedSearchScriptGenerator.py

πŸ§‘β€πŸ’» Usage

  1. Open the app.
  2. Paste your search.create script (as generated by NetSuite).
  3. Enter:
    • Search Name
    • Search ID Suffix – only the part after customsearch
    • Description – brief notes about the saved search
  4. Click Preview to see the formatted script.
  5. Click Process and Save to export the JavaScript file.

Alternative Usage:

  1. Install Pyinstaller
pip install pyinstaller
  1. Navigate to folder above
cd Saved-Search-Deployment-Generator
  1. Run the following command:
pyinstaller --onefile --windowed --noconsole SavedSearchScriptGenerator.py
  1. In the dist folder created - you now have a single executable file. This can be used from start, desktop, or other shortcuts.

About

Streamlit branch is nicer lol

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages