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
- π 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
- Python 3.x
- Tkinter (usually comes pre-installed with Python)
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
- Open the app.
- Paste your
search.create
script (as generated by NetSuite). - Enter:
- Search Name
- Search ID Suffix β only the part after
customsearch
- Description β brief notes about the saved search
- Click Preview to see the formatted script.
- Click Process and Save to export the JavaScript file.
- Install Pyinstaller
pip install pyinstaller
- Navigate to folder above
cd Saved-Search-Deployment-Generator
- Run the following command:
pyinstaller --onefile --windowed --noconsole SavedSearchScriptGenerator.py
- In the dist folder created - you now have a single executable file. This can be used from start, desktop, or other shortcuts.