Last updated
Last updated
The Query Wizard simplifies the process of setting up filters, especially for administrators unfamiliar with SOQL syntax. Instead of manually writing the WHERE clause in SOQL, admins can use an intuitive interface to select conditions and input values, making filter configuration much more accessible.
Normally, filter settings in the builder correspond to the WHERE clause in SOQL. For administrators who are not well-versed in SOQL, this can be challenging. The Query Wizard resolves this issue by allowing admins to configure filters without needing in-depth knowledge of SOQL.
By using the Query Wizard, admins can define filter conditions through simple selection and input steps. This significantly streamlines the process of creating filters.
When multiple filters are added in the Query Wizard, they are combined using AND logic by default.
When three filters are added using the Query Wizard:
These filters are combined into a single condition as follows:
To modify the logic, click Edit Logic and customize the logic using the filter numbers.
If you want to use OR instead of AND, edit the logic as follows:
The updated logic will generate filters based on the new condition.
Filters can also bind values to fields from the parent object. By selecting the Parent option next to the value input field, you can link the filter condition to a specific parent object field.
This feature enables dynamic data retrieval based on parent object field values, offering greater flexibility in query configurations.
Letβs configure a filter to retrieve Pricebook Entries that match the parent objectβs Pricebook (Pricebook2Id):
In the Filter by Query section of the object connection step, click the Query Wizard button.
Next to the value input field, select Parent.
Search for and select the Pricebook field (Pricebook2Id
) of the parent object.
Confirm that the filter condition is automatically set to: {$Parent.Pricebook2Id}
This configuration ensures that only Pricebook Entries matching the parent objectβs Pricebook are retrieved. The Query Wizard automatically generates the necessary filter syntax, making it easy and convenient to add conditions.
This example demonstrates the configuration of a Line Item Editor for Opportunity Products:
Parent: Opportunity
Line Item: OpportunityLineItem
Lookup: PricebookEntry