The NS Search Definition extension is designed to decrypt and display NetSuite Saved Search Definitions in XML format. This extension is especially useful for NetSuite administrators and developers who need to decrypt and inspect search definitions for auditing, debugging, or development purposes.
Features
Decrypt NetSuite Saved Search Definitions: Right-click on an XML file and choose "Decrypt Search Definition" to decode NetSuite Saved Search definitions.
Right-click on Folders to Decrypt Multiple Files: Right-click on a folder in the VS Code Explorer and choose "Decrypt All Searches". This will process all customsearch*.xml files in the folder, decrypting and formatting each search definition.
Search Across Multiple Saved Search Files: Once you have downloaded multiple Saved Search XML files, use the folder decryption feature to decrypt them in bulk and open them for inspection.
Command Palette Integration: You can trigger the decryption process using the command palette with the command "Decrypt Search Definition" or "Decrypt All Searches".
Formatted XML Output: The decrypted search definitions are automatically formatted for easy reading and analysis.
Example Usage
Decrypt a Single File
Right-click on the file in the VS Code Explorer and select "Decrypt Search Definition".
The decrypted and formatted XML is opened in a new tab.
Decrypt All Saved Searches in a Folder
Right-click on a folder containing NetSuite Saved Search XML files (e.g., customsearch*.xml).
Select "Decrypt All Searches" from the context menu.
All .xml files that match the pattern customsearch*.xml in the selected folder will be decrypted and saved to the specified output folder or displayed in the editor.
Use Case: Analyzing NetSuite Saved Search XML Files
You can download all NetSuite Saved Search XML files (using SuiteCloud Development Framework (SDF) or other methods) and decrypt them using this extension. Once decrypted, you can search for specific information, such as:
Fields Used: Open the XML files and look for specific fields that are part of the search criteria or result columns.
Formulas Used: Search for any formulas used in the saved searches by inspecting the XML for formula expressions.
Downloading NetSuite Saved Search XML Files
To download NetSuite Saved Search XML files, you can use NetSuite's SuiteCloud Extension for Visual Studio Code, available at the VS Code Marketplace. This extension enables you to work with SuiteCloud projects and provides tools to download, deploy, and manage NetSuite objects, including Saved Search definitions.