Search Examples
2 min
the following are some examples of how to use search example creating a saved search with expressions to search for all incidents that are breaching within the next 24 hours, set up the search query fields as follows log into the open the incident workspace open the saved searches menu see viewing the list of saved searches available to your role docid\ o9yll2iz3uxqzetlhodku for information about opening the saved searches menu click new saved search a blank search form appears enter a search name, such as "expression example", and click save set up your query as shown in the example below business object field operator criteria incident status in list active, logged, waiting for 3rd party, waiting for customer, waiting for resolution and is related to at least 1 escalation watch via incidentassociatedescalationwatch (0 1 0 n) where escalation watch breachdatetime greater or equal $(today()) and escalation watch breachdatetime less than $(tomorrow()) example of creating a saved search with expressions click run search to see the results click save example using find and replace you can create a quick action that enables you to find and replace specific values in specific fields in an entire saved search list, a selection of items, or a single item the find and replace quick action looks through the records for any instances of the specified field that contain the specified current value when it finds that field and current value, it replaces the current value with the new value find and replace quick action before in this example, the name is owner change no description is added the category is form actions (if you do not choose a category, the quick action is listed in no category ) find and replace quick action after in this example, we use the find and replace quick action created above to replace the name of an incident owner with the name of a different owner for all results in the current saved search individual incident before search and replace incident list before search and replace in this example, the category is form actions and the name of the quick action is owner change owner change quick action in this example, the field is owner the current value is ron b davis and the replacement value is chris lawton check one of the following find results in selected rows finds individual incidents that you previously highlighted find all results in current saved search finds the entire list of incidents that is currently displayed in this example, we checked find all results in current saved search click replace the quick action looks through the records for instances of the owner field that contain ron b davis when it finds such an instance, it replaces ron b davis with clawton when the quick action is finished, it displays a message with the results incident list after search and replace example finding records that will breach this topic describes how to create a saved search that searches for records that will breech within a specific time, in this case, records that will breach in the next seven days this search uses expressions log into the service desk console open a workspace open the saved searches menu see viewing the list of saved searches available to your role docid\ o9yll2iz3uxqzetlhodku for information about opening the saved searches menu click new saved search to create a new search see using saved search docid\ o9yll2iz3uxqzetlhodku for more information on how to create a saved search in the search criteria area, choose the following business object field operator criteria escalation watch via incidentassocresolutionescwatch (0 1 0 1) breachdatetime equal to $(beginningofday(7)) and escalation watch via incidentassocresolutionescwatch (0 1 0 1) breachdatetime greater than $(currentdate()) and incident status not in list closed, resolved for more information, see about using expressions in searches and dashboards docid 33gdbnsl3hlvhnyfxodad example search the next 7 days click preview to check your search results click save
