Flexi Kanban
  • Introduction
    • πŸ“ƒAbout Flexi Kanban
    • βš–οΈFlexi Kanban in Comparison with Other
    • πŸ“˜What are Kanbans?
    • πŸ“•User's Guide to the Kanban Boards
  • Standard Dashboard
    • πŸš€Getting started
      • How to Build a Simple Kanban Using Creation Wizard Abilities
      • Demo Example: Task Dashboard
      • Demo Example: Events Dashboard
      • Demo Example: Opportunities Dashboard
      • Demo Example: Gantt Dashboard
      • Demo Example: Cases Dashboard
    • πŸ“Basics
      • How to Create Standard Dashboard
      • How to Create Child Dashboard
      • How to Incorporate Child Dashboard into Lightning Page
      • How to Open Dashboard in builder (Edit)
      • How to Share Dashboard
      • How to Clone Dashboard
    • πŸ—οΈConfigure Dashboard
      • Working with Dashboard Layout
      • How to Configure Dashboard Basic Properties
      • How to Configure Dashboard Filters
      • How to Add Dashboard Statistics
      • How to Configure Variables
      • How to Configure Events
      • How to add Dashboard Buttons and Menus
    • πŸ™οΈConfigure Column
      • How to Π‘onfigure Column Properties
      • How to Set Column Groups
      • How to Set and Use Column Custom Attributes
      • How to configure Column Data Source
      • How to work with Related Objects
      • How to configure Column Header
      • How to configure Column Body
      • How to configure Column Footer
      • How to configure Column Container and Filters
    • 🎫Configure Card
      • How to configure Card Properties
      • How to configure Card Data Source and Conditions
      • How to configure Card Compact Layout
      • How to configure Card Layout
      • How to configure and use Card Custom Attributes
      • Configuring Card Movement and Column Junctions
      • Configuring Card Actions
    • πŸ“šGroups of Cards
      • How to configure Card Grouping
    • πŸ”§Tools
      • Using Merge Field Picker
      • Using Formula Editor
      • Configuring CSS styles
      • Configuring Rows, Cells, Menus and Buttons
      • Configuring Handlers
    • πŸ‘“Using Dashboard
      • How to use Kanban API actions
      • How to Incorporate Dashboard into Lightning Page
      • How to build the link to the Dashboard
      • How to Work with Variables
      • How to debug Dashboard
      • How to Work with Filters and Orders
    • ✨Howtos and Best Practices
      • How to configure communication between Dashboards
      • How to configure communication between Dashboard and Form
      • How to display different layouts for the same kanban card
      • How to design kanban for your needs
        • How to colorize cards
        • How to add a quick-filter column
      • What inactive column can be used for
      • Tips and Tricks
  • Composite Dashboard
    • πŸ—„οΈIntroduction
      • πŸ”§How to Create a Composite Dashboard
    • πŸͺ›Working with Composite Dashboard Layout
      • Configuring Parent Dashboard
      • Configuring Child Dashboard
    • πŸ–‡οΈConnections Between Dashboards
    • πŸ”¬Examples
      • !! Calendar Dashboard
    • πŸ₯‡Howtos and Best Practices
      • How to Pass Variables Between Parent and Child Dashboards
  • Components
    • πŸ“‹Forms
      • πŸ“‘Basics
        • Form Building Overview
        • Working with Form Settings
        • Working with Source Object fields
        • How to Preview the Form
        • How to configure the Form Sharing Rules
        • Understanding the Form Dependencies
        • Working with Conditional Styles
        • Working with Conditions
        • Search Over the Form
      • πŸͺ›Tools
        • Variables
        • Additional Fields
        • Context Object
        • Form Action
        • Event
      • Components
        • Add and Remove Form Components
        • Components Basic Properties
        • Components Validation Rules
        • Styling Form and Form Components
        • String Field
        • Text Area Field
        • Rich Text Field
        • Lookup Field
        • Date Field
        • Datetime Field
        • Time Field
        • Number Field
        • Currency Field
        • Multi-Select Field
        • Picklist Field
        • Option: Section
        • Option: Static Text
        • Option: Image
        • Option: Blank Space
        • Option: File
        • Option: Custom Button
        • Option: Custom URL
        • Option: Nested Form
        • Option: Lightning Component
        • List. Related Lists.
      • Using Form
        • How to incorporate Form into the Lightning Page
        • How to incorporate Form into Screen Flow
        • How to build the link to the Form
        • (unpublished, empty)How to incorporate Form into the Lightning Component
        • How to run Form Action from Lightning Component
      • Tricks, Hints and Best Practices
        • How to configure communication between Forms
        • How to pre-populate form fields
        • Deployment of Forms
        • What Are Parameters?
    • 🀾Actions/Action Groups
      • Basics
        • Working with Actions
        • Working with Action Groups
        • Working with Functions
        • Working with Context objects
        • Working with Conditions
      • Types
        • Validation Rule Action
        • Define Variable Action
        • Create Record Action
        • Update Records Action
        • Delete Records Action
        • Send Email Action
        • Callout Action
        • Execute Apex Action
        • KanBan API Action
      • Using Actions
        • !!unpublished empty!! How to execute Action/Group from the SF Process/Flow Builder
        • How to execute Action/Group through the REST api
        • !!unpublished empty!! How to execute Action/Group from the Einstain Bot
        • !!unpublished empty !! How to execute Action/Group from APEX
      • Best Practices
        • !! How to use Execute in background option
        • !! Deployment Actions/Action Groups
  • πŸ“–References
    • βš™οΈApplication Settings
    • ♾️Functions
      • SObject
      • Text
      • Logical
      • Numeric
      • Date and Time
      • JSON
      • System
      • Charts
    • πŸ—ƒοΈQuery Conditions
    • Apex Data Provider
    • πŸ“How to add a Kanban to Navigation Items Panel
    • πŸ‘₯Manage Licenses
    • πŸͺͺAssign Permission Sets
    • πŸ“¦Deployment
      • Deploying Using Standard Credentials
      • Deploying Using Connected App Authentication
      • How to configure the Salesforce Connected Application for Flexi Kanban deployment
  • Grant Login Access to Support
  • Subscription Plans
  • Support Agreement
  • Access License Agreement
  • Privacy Policy
Powered by GitBook
On this page
  • Examples:
  • Creating complex query condition logic
  • Examples:
  1. References

Query Conditions

Query conditions are used in many places that are Column Data Source Configurations, Forms, Actions, etc.

Last updated 11 months ago

Configure conditions:

  • Click "Add Condition" button

  • Select fields, operators and set values

  • Add more conditions

Operators can be the following.

For any field:

  • Equals - strict equality of value of selected field to one that is specified in "Value" field (for dates and times - matching selected range)

  • Not equal to - opposite to previous (strict unequality; for dates and times - out of selected range)

  • Is null - value of selected field is blank or absent (not set at all)

  • Is not null - opposite to previous (value of selected field exists and it is not blank)

For text and picklist fields:

  • Starts with - value of selected field starts with a substring (group of symbols) specified in "Value" field

  • Contains - value of selected field contains a substring specified in "Value" field

  • Does not contain - opposite to previous (value of selected field does not contain a specified substring)

For numeric (number, currency, percent, etc.) and date (date, time, datetime) fields (for date fields "less" means "earlier" and "greater" means "later"):

  • Less than - value of selected field is less than one specified in "Value" field

  • Greater than - value of selected field is greater than one specified in "Value" field

  • Less or equal - value of selected field is less than one specified in "Value" field or equal to it

  • Greater or equal - value of selected field is greater than one specified in "Value" field or equal to it

For multiselects:

  • Includes - value of selected field includes one specified in "Value" field (suitable to fields that does not support "contains" operator, like lists of IDs)

  • Excludes - opposite to previous (value of selected field does not include one specified in "Value" field)

For picklists, IDs, lookups:

  • In - value of selected field is in the list of values provided in "Value" field

  • Not in - opposite to previous (value of selected field is not in the list of values provided in "Value" field)

Operators "In / Not in" take lists of values in the following formats (in the order of their priority from highest to lowest):

  • JSON array - ["Value1","Value2","Value3"]

  • string with ; delimeter - 'Value1;Value2;Value3'

  • string with , delimeter - 'Value1,Value2,Value3'

If value have an umbiguous content, system will interprete in the order shown above. E.g., the string 'Value1;Value2;Value3,4;Value5' will be interpreted as ["Value1", "Value2", "Value3,4", "Value5"], not as ["Value1;Value2;Value3", "4,Value5"].

Values can be of different types:

  • Value - some static value

  • Field - values of the the fields of the Source object

  • Formula - compare with Merge fields of Context objects using formulas.

Provide condition logic expression if necessary:

Condition logic is build based on list of conditions user created.

If you don't fill Logic field then all conditions are validated all at once so record that gets validated should meet all conditions.

To use conditions in Logic expression one needs to operate conditions Index values. So {1} will represent Status = New condition, {2} will represent Closed = TRUE condition, etc.

Each condition Index must be enclosed in curved brackets

Following operators can be used when creating logic based on list of indexed conditions:

  • OR evaluates if at least one of multiple values or expressions is true.

  • AND evaluates if two values or expressions are both true.

  • NOT(expression that you want evaluated) - Returns FALSE for TRUE and TRUE for FALSE.

( ) specifies that the expressions within the open parenthesis and close parenthesis are evaluated first. All other expressions are evaluated using standard operator precedence.

Examples:

Following condition will be met in case one of the listed clause return TRUE.

Following condition will be met when Case Status is not "New", Case Origin is "Phone" and Case is not Closed or Case Type is "Electrical".

Following condition will be met when Case Status is not "New" or when Case Origin is not "Phone" or when Case is not Closed and Case Type is not "Electrical".

Creating complex query condition logic

{BR} operator must go after base condition logic

Examples:

Following condition will be met when Case Status is "New" and Case Origin is "Phone" or both Closed is TRUE and Case Type is "Electrical", and query will only include case where CreatedBy.Email='user@email.com' or LastModifiedDate greater than YESTERDAY.

{BR} operator is used to create WHERE part of Condition logic. Everything that goes after {BR} works the way clauses do after WHERE statement in Salesforce Object Query Language. Use after {BR} operator.

πŸ“–
πŸ—ƒοΈ
SOQL SELECT Syntax
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing