Automated Search Clean Up Considerations
This list describes some of the special cases encountered when using the Automated Search Clean Up tool
- When an archived search contains Date filters, you must have the same date format preference as the Company’s date preference to accurately restore the filter.
- SuiteScript cannot delete Pricing searches. Pricing searches are not displayed in the Clean Up preview and are excluded from the Automated Search Clean Up.
- Private searches with a Period filter cannot be deleted. SuiteScript returns an Unexpected Error when trying to temporarily set the search as public to delete it.
- Searches with Period filter cannot be fully restored. Only public searches can be deleted for searches with Period filter.
Limitations to Restoring Auto Archived Searches
Items from the Criteria and Results tabs are restored with the exception of Public searches with the Period filter. Auto archiving does not occur with Private searches with the Period filter, as they cannot be deleted or archived.
The following check boxes on the Search form are not restored if they were checked:
- Available as List View
- Available as Dashboard View
- Available as SubList View
- Available for Reminders
- Show in Menu
Items from the following tabs on the Search form are not retained when an auto archived search is restored:
- Highlighting
- Available Filters
- Audience
- Audit Trail: the restored search is assigned a new Internal ID. The audit trail only contains entries for the new Internal ID.
Automated Search Clean Up
The Automated Search Clean Up feature runs as scheduled, or on demand, using custom rules to find and manage Saved Searches. Accumulated searches contribute to inefficiency in NetSuite accounts.
Review the Automated Search Clean Up Considerations prior to using this feature.
Saved Searches are powerful customizations used throughout NetSuite and interconnected to other customizations. As user-created Saved Searches proliferate, NetSuite accounts become inefficient and overall performance degrades. This rules-based tool provides administrators the ability to identify and archive Saved Searches and keep NetSuite accounts organized, easy to understand, and improve efficiency and performance. Archived searches can be restored with limitations.
The Automated Search Clean Up tool has two operating modes:
- Automatic - scheduled automated search cleanup that runs continuously and completes within 14 days.
- Run Now - adhoc run of automated search cleanup that triggers once and completes within 7 days of notifying owners and users. If you choose to not send notifications, searches are archived immediately.
These searches are excluded from clean up:
- Searches from managed bundles
- Searches from 3rd party bundles
- Searches with script/script deployment dependencies, workflow dependencies, field/data sourcing dependencies, and documented integration dependencies
- Searches with role dependencies
- Searches with group dependencies
- Agent control searches
- Searches with Change/Approval Policy requiring a Change Record
- Search record types not in Suitescript Supported Records
Menu options are available to access the rules and lists:
- Search Clean Up Rules
- Search Clean Up Status
- Archived Searches
- Retained Searches
- Searches To Be Archived
Search Clean Up Rules
Search Clean Up rules are created by the administrator and used to locate Saved Searches matching the rule criteria. Search Clean Up rules are used for both Automatic and Run Now.
To create or edit rules, access Strongpoint> Automated Search Clean Up > Search Clean Up Rules
- Name is the assigned name for the Search Clean Up Rule Record.
- Rule Owner(s) is the administrator or owners for the rule record.
- Description is the purpose of the rule record. An informative description helps administrators easily maintain and identify rules.
- Notify Search Owners Prior to Archive check to send email to search owners prior to archive. Default is checked.
- Notify Search Users Prior to Archive check to send email to search users prior to archive. Default is checked.
- Notify Supervisor for Inactive Owners check to send email to an inactive owner's supervisor. Default is checked.
- Automatic is used to include the rule in the automated search. This option is not available until the Preview function has been used.
- Inactive check to exclude this Search Clean Up Rule from the automated search.
- Filter Summary displays all of the current filters for the rule.
- Notes displays information about the Search Clean Up for this rule.
Schedule
This section is available when Automatic is checked.
- Weekly Event: check and enter the Repeat frequency to schedule clean up weekly.
- Monthly Event: check and enter the Repeat frequency to schedule clean up monthly.
- Yearly Event: check to schedule a yearly run.
- Next Run Date: this field is populated by the system, and cannot be edited. The date is added when the schedule is saved.
- End By: pick a date to stop running automatic clean up.
- No End Date: check to never stop the scheduled clean up.
Basic Filters
- Search Name filters searches to clean-up by name. Filter operator is startswith and the
wildcard % may be used. Default is blank.
Example: Custom % Search% returns all searches with a name starting with 'Custom ' followed by any character and the name must contain 'Search' such as Custom Inventory Detail Search. - Search ScriptID filters searches to clean-up by ID. Filter operator is startswith and the
wildcard % may be used. Default is blank.
Example: %testing returns all searches with an ID containing the word 'testing' such as customsearch_testing_1. - Months Since Date Last Used, Retained/Restored filters searches by the last run date of the search or the restore/retain date, whichever is the most recent. Searches that have been used, restored, or retained within the specified timeframe are excluded from the search. Default is 6 months.
- Exclude Private Searches excludes searches set as Private by search owners. Default is checked.
- Exclude Scheduled Searches excludes searches set to run on a schedule. Default is checked.
- Exclude Searches That Send Triggered Emails excludes searches that send scheduled results reports. Default is checked.
- Exclude Searches Less Than A Month Old excludes new searches that have not been run. Default is checked.
- Exclude Searches Available As Sublist excludes searches available as a sublist in a Record. Default is checked.
Advanced Filters
- Search Owner(s) filters searches by matching selected owners or if Exclude Owner(s) is checked, to exclude matching owners for the rule. Multiple owners can be selected. Default is blank and unchecked.
- Owner's Department(s) filters searches by matching departments to the rule or if Exclude Department(s) is checked, to exclude matching departments for the rule. Multiple departments can be selected. Default is blank and unchecked.
- Owner's Subsidiary filters searches by matching subsidiaries to the rule or if Exclude Subsidiary is checked, to exclude matching subsidiaries for the rule. Multiple subsidiaries can be selected. Default is blank and unchecked.
- Inactive Owner(s) filters searches by matching inactive owners. Default is blank.
- All Inactive Owners filters searches by all inactive owners. Default is unchecked. A maximum of 1000 inactive users are loaded. A warning is displayed if there are additional inactive users.
Excluded Searches From Preview
Lists any searches excluded after the Preview function is used.
Rule Preview
The Preview function provides a quick method to mark Saved Searches to be retained or to included for clean up. The Run Now feature begins an immediate run for the rule.
- Administrators can click Preview on an Search Clean Up Rule. Preview displays the rule, filters and conditions.
- Review the Search List.
Check Include to trigger a final notification email to be sent to the owner/user.
Check Retain Search to keep the search. - Click Run Now to begin a Search Clean Up for the rule.
- Click Confirm.
- After previewing, you can click Automatic on the Search Clean Up Rule to include the rule for automatic searches.
Run Now
This option immediately begins an Search Clean Up using the current rule.
If a Saved Search matches the Clean Up Rule:
-
Summary notification of all the matching saved searches is sent to the rule owner.
-
Immediate notice to all search owners and search users with their searches that are about to be archived. Notifications include a Retain this Search link. A Preview link is available for the user to view the Search.
-
If the Retain Search link is not used and the Saved Search has not been used, final notifications are sent to all search owners and search users seven calendar days after the Run Now option was used. The notification includes the date the search is to be archived.
-
If the Retain Search link is not used and the Saved Search has not been used by the archive date:
- Saved Search is archived.
- Archive notifications are sent to rule owner and all search owners/users.
- Search is added to administrator's Archived Searches list.
- Summary notification of all auto-archived searches are sent to the rule owner.
Automated Run Workflow
Automated Search Clean Up runs continuously comparing searches to all rules marked Automatic. Administrators receive weekly summary information containing: identified searches, retained searches, scheduled to be archived searches and archived searches.
-
When a Saved Search matches a Clean Up Rule:
- Notification is emailed to the rule owner. The Saved Search is also included in the summary notification to the rule owner.
- Notifications are sent the first closest Sunday since the rule was marked Automatic.
- Notification is emailed to the search owners unless Notify Search Owners Prior to Archive is turned off for the rule.
- Notification is emailed to the search users unless Notify Search Users Prior to Archive is turned off for the rule.
- All email notifications include a Retain this Search link. A Preview link is available for the user to view the Search.
- Saved Search is added to the Automated Search Clean Up > Searches To Be Archived (Auto) list.
-
If the Retain Search link is not used and the Saved Search has not been used, second notifications are sent the following Sunday after the first notification date. The notification includes the date the search is to be archived.
-
If the Retain Search link is not used and the Saved Search has not been used by the archive date:
- Saved Search is archived.
- Archive notifications are sent to rule owner and all search owners/users.
- Search is added to administrator's Archived Searches list.
Search Clean Up Status
Open Strongpoint> Search Auto Clean Up > Search Clean Up Status to view current status.
- Job Type: Run Now or Automatic.
- Status:
Pending - initial status for the run.
Pending Notification - searches have been identified, no notifications sent.
In Notice Period - at least one notification has been sent.
Processing - search is being auto-archived.
Completed - all identified searches have been archived, and email sent to rule owner and administrator.
Canceled - Automatic checkbox was turned off for the rule.
Click Notification Tracker on the Notifications tab to launch the tracker.
Notification Tracker
Accesses all of the communications and history for search clean ups. You can list all notifications sent by rule or by the job. Provides traceability between the clean up rules, clean up jobs, and email notifications.
Retaining a Search
Notification emails contain a link to Retain this search for each listed search or Retain All to keep all of them. Use the Preview link to view each Search.
Retain this search prevents archiving an individual search. The Retain Search form is displayed so you can add the Reason for Retaining the search. Click Save and Exit when complete.
Retain All opens a page where you can provide the Reason to retain each search. Check the Apply box for each search. When finished, click Retain Search.
The Retain process:
- Updates the Date Last Used, Retained/Restored to the current date.
- Adds the search to the Automated Search Clean Up > Retained Searches report. The Search Retain Reason is shown on this report.
- Notifies the owners/users the search will be retained.
Auto Archiving a Search
If search owners or users do not click on Retain this search in the email notifications, the search is archived. The Archive process:
- Archives the search.
- Adds the search to the Automated Search Clean Up > Archived Searches report.
- Marks Customization record for the search Inactive.
- A Restore button is added to the Clean Up tab on the customization record for the search.
- Auto Archive notifications are sent to the rule owner and administrators. A Restore link is included in the email.
Restoring an Auto Archived Search
A NetSuite Administrator can restore an auto archived search with some limitations. Open the Clean Up tab of the Customization record for the search or the report Automated Search Clean Up > Archived Searches. Click Restore. Or use the Restore link in the email sent to the rule owner and administrators.
- Search is restored with limitations. Restored searches have a different internal ID from their original version, resetting the audit trail.
- Updates the Date Last Used, Retained/Restored to the current date.
- Adds the search to the Automated Search Clean Up > Retained Searches list.
Limitations to Restoring Auto Archived Searches
Items from the Criteria and Results tabs are restored with the exception of Public searches with the Period filter. Auto archiving does not occur with Private searches with the Period filter, as they cannot be deleted or archived.
The following check boxes on the Search form are not restored if they were checked:
- Available as List View
- Available as Dashboard View
- Available as SubList View
- Available for Reminders
- Show in Menu
Items from the following tabs on the Search form are not retained when an auto archived search is restored:
- Highlighting
- Available Filters
- Audience
- Audit Trail: the restored search is assigned a new Internal ID. The audit trail only contains entries for the new Internal ID.