---
title: Searching. Supercharged.
slug: docs.sugarquickqueryis.fun
docTags: 
createdAt: 2023-02-12T16:09:39.000Z
---

![](https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/tLNJvAXu1dHQb8Mu8PG_n_intro.png "Accounts contacted since the beginning of last month")

QuickQuery is **search on steroids**. Here are some of the things you can do with QuickQuery:

- Search using **and/or/not**!
- Search using queries on **related modules!&#x20;**&#x4E;eed to find Accounts having Calls associated with a closed Opportunity? No problem! How about Opportunities with no Calls or Meetings planned in the next month? Easier than 1-2-3!
- Write queries tha&#x74;**&#x20;compare fields**! Looking for Opportunities whose assigned user is different from the assigned user of the parent Account? We've got you covered!
- Searc&#x68;**&#x20;anywhere normal search works** - QuickQuery works on list views, when selecting related records, in dashlets, subpanels, in Forecasts - anywhere you have a search bar!
- **Save your queries** just as you would with regular filters, and re-use them whenever you feel like it! What's more, you can **share your queries with others** simply by copy-pasting them!
- Not sure what that field was named? No worries! QuickQuery **helps you write your query** by hinting appropriate fields, operations, values for drop-downs, currencies, and more. It also lets you know when you made a mistake.
- Everyone likes colors! Watch as QuickQuery **highlights your query** using a beautiful, vibrant palette, which makes it easy to keep your bearings in a long query!
- **Currencies are automatically handled** behind the scenes, with QuickQuery converting between them on the fly!
- Take advantage of an **incredibly powerful way of working with temporal fields**, while also taking into account your timezone settings. Search using queries like *"9am first Saturday of last month"* or *"-2 weekdays"*
- QuickQuery immediately works with **all custom fields and custom modules**! No need to configure anything.
- QuickQuery works **alongside built-in filter functionality**, and [can be combined with them](docId\:W-qrkDeRLeW3WRPt_ZMUc). It is also non-invasive, meaning **each user can decide to turn it on and off as they wish**, for any module.

***

## Crash Course

### Basics

To enable QuickQuery, **click on the grey lightning bolt** in any search bar. The bolt will turn yellow, indicating QuickQuery is up and running.

::::VerticalSplit{layout="middle"}
:::VerticalSplitItem
::Image[]{src="https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/ZltKSlf8Iy1F_5eGYB1w3_searchingsuperchargedqqoff.png" size="64" width="277" height="120" caption="QuickQuery turned off" position="center" showCaption="true"}
:::

:::VerticalSplitItem
::Image[]{src="https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/iJbBDh0HiBBF-wQz4onn0_searchingsuperchargedqqon.png" size="74" width="268" height="100" caption="QuickQuery turned on" position="center" showCaption="true"}
:::
::::

You can now start searching!&#x20;

Start by **typing in the name of a field** we want to search by - say you're in <font color="#eb144c">`Accounts`</font>, and you want to search by <font color="#fcb900">`Description`</font>:

![](https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/it6AXFKhRVNGeDizB5Rzo_searchingsuperchargedstarttyping.png)

QuickQuery automatically searches among all valid things you could mean, and gives you the option of **autofilling** it using either the arrow keys **\[↑]** / **\[↓]** and **\[↵ Enter]** or the mouse 🖱️. Try it out!

Once you type the name, QuickQuery proceeds to **suggest all valid operations** you can use, depending on the field type. For example, <font color="#9900ef">`smaller than`</font> only appears when dealing with numeric fields!

![](https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/v8Jiu8vyFZV4cCLZ2wzug_searchingsuperchargedoperators.png)

Pick or type out an operation - we'll use <font color="#9900ef">`contains`</font> to search for descriptions containing the word <font color="#3b9f0f">`"licenses"`</font>. **The quotes are important!** You're letting QuickQuery know that you mean the *word* "licenses", as opposed to a *field* named <font color="#fcb900">`licenses`</font>.

![](https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/tFDAYaUmprxgGqDkU7nfA_searchingsuperchargedsearchingtext.png)

That's it! Notice how **the&#x20;**`Search`**&#x20;button turned green**, indicating that there are no errors in your query, and you're ready to roll. Go ahead and click the button, or press **\[⇧Shift]** + **\[↵ Enter]**, and watch the results of your search appear on screen.

**Congratulations!** You just performed your first basic search with QuickQuery! Now let's take a look at **searching using linked records!**

***

### Search Using Linked Records

Let's stay in the <font color="#eb144c">`Accounts`</font> module, and search for <font color="#eb144c">`Accounts`</font> having an <font color="#eb144c">`Opportunity`</font> with a <font color="#fcb900">`Likely`</font> value <font color="#9900ef">`larger than`</font> <font color="#3b9f0f">`$25000`</font>. To search by a field in a related record, you write **the name of the related module, a period, and then the name of the field**. So in our example, you would write <font color="#eb144c">`Opportunity`</font>`.`<font color="#fcb900">`Likely`</font>. As always, when you start typing, QuickQuery will suggest the correct fields, and even include the period.

![](https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/CpsPu2EHD9NPiRpUHu96Q_searchingsuperchargedrelatedsearch.png)

Notice how the available operations changed from last time, since you're now querying a numeric field. Pick either <font color="#9900ef">`larger than`</font> or <font color="#9900ef">`<`</font>, depending on your preference, and notice how QuickQuery suggest the currencies that are configured in your SugarCRM instance.

![](https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/YyI-ThfqEIDBCwG1r3hBy_currencies.png)

Pick <font color="#3b9f0f">`"USD"`</font> - you could have also used <font color="#3b9f0f">`"US Dollars"`</font> or <font color="#3b9f0f">`"$"`</font> - be sure to **include quotes around the name of the currency**, and then enter <font color="#3b9f0f">`25000`</font>. The `Search` button turns green, indicating you have a valid query, and you're free to fire it off!

![](https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/rfGjMt5EnYDxIDIi3mCcF_currencysearch.png)

**Awesome!** You just learned how to search using linked records. Keep in mind that you're **not limited to a single level!** How about searching for <font color="#eb144c">`Accounts`</font> with <font color="#eb144c">`Opportunities`</font> that have no <font color="#eb144c">`Task`</font>? No problem!

![](https://api.archbee.com/api/optimize/fRibh2_2NwaS_4MGgrZuA/UQvgHDb20sQY5BJMiMQAc_relatedsearchempty.png)

However, keep in mind that there's more to searching by links than this. You should definitely learn about <font color="#9900ef">`<some>`</font>/<font color="#9900ef">`<all?>`</font>/<font color="#9900ef">`<all!>`</font> in [Fields & Links](docId\:kzBTLLYb4xfJ8DF290vXI)!

***

### Where To Go From Here

- First, spend some time reading our [Terms & Conditions](docId\:Vlm7IzovtB18mrxrRHKfJ)
- After that, quickly learn about the [visual elements in QuickQuery](docId\:P4UIQLB6kdnaOydfb8uHB)
- Then, understand the basics of how to [write queries](docId\:zBJ6ATBBc9_S7nLSnWcHh)&#x20;
- Most importantly, learn about:
  - &#x20;[Fields & Links](docId\:kzBTLLYb4xfJ8DF290vXI)
  - &#x20;[Operators](docId:-A6C2C3F2FW7YdjuVamvz)
  - &#x20;[Values](docId\:KhWZ7b0QhFIwTzxiLv2JI)
- Finally, browse through [Useful Examples](docId:4z206vS3o6OyFfkvFWR1l) and the [FAQ](docId\:W-qrkDeRLeW3WRPt_ZMUc)

