Loading
Business Rules Engine
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Matches Operator in Decision Tables

          Matches Operator in Decision Tables

          Use the Matches operator to retrieve an output if the query value is an exact match or a subset of the decision table row value. The Matches operator is case-sensitive and applies only to input fields in the decision table.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Unlimited, and Developer Editions for clouds that have Business Rules Engine enabled

          Here are some examples of how the Matches operator works for the data types that support the operator.

          Data Type Description EXAMPLE
          Text Matches your input string to an entire value or a part of it in decision table cells and returns the output values of the rows that the cells belong to. The output is sorted by the sort order for the input columns that’s defined in the decision table.

          A decision table column is configured like this:

          • Column: Applicant Code
          • Data Type: Text
          • Operator: Matches
          • Sort Order: Ascending with Blank Values First

          The Applicant Code column has ABCDEXIJ, TMPUHBK, XYZABC, and NNABCOP as the row values.

          ABC is passed as the input string for lookup. The table returns the output values for the matching input cells in ascending order starting with blank values, followed by ABCDEXIJ, NNABCOP, and XYZABC.

          Here, ABCDEXIJ, XYZABC, and NNABCOP are considered as matching values because they contain the string ABC.

          Text Matches your input string to an entire value or a part of it in decision table cells and returns the output values of the rows that the cells belong to. The output is sorted by the sort order for the input columns that’s defined in the decision table.

          A decision table column is configured like this:

          • Column: Job Title
          • Data Type: Text
          • Operator: Matches
          • Sort Order: Ascending with Blank Values First

          The Job Title column includes the following row values: Senior Regional General Manager, General Manager, Regional General Manager, and Assistant General Manager.

          When Regional General Manager is passed as the input string for lookup with the Matches operator, the table returns the output values for the matching input cells in ascending order, starting with blank values.

          The matching values are Regional General Manager and Senior Regional General Manager, as they contain the string "Regional General Manager."

          AutoNumber Matches your input number to an entire value or a part of a value in decision table cells and returns the output values of the rows that the cells belong to. The output is sorted by the sort order for the input columns that’s defined in the decision table.

          A decision table column is configured like this:

          • Column: Serial Number
          • Data Type: AutoNumber
          • Operator: Matches
          • Sort Order: Ascending with Blank Values First

          The Serial Number column has 10, 100, 101, 102, 103, 111, and 120 as the row values.

          10 is passed as the input value for lookup. The table returns the output values for the matching input rows in ascending order starting with blank values, followed by 10, 100, 101, 102, and 103.

          Email Matches your input string to an entire email or a part of it in decision table cells and returns the output values for the rows that the cells belong to. The output is sorted by the sort order for the input columns that’s defined in the decision table.

          A decision table column is configured like this:

          • Column: Contact Email
          • Data Type: Email
          • Operator: Matches
          • Sort Order: Descending with Blank Values Last

          The Contact Email column has rose@salesforce.com, lily@salesforce.com, jasmine@salesforce.com, salesforce.support@salesforce.com, lily@example.com, and rosa@example.com as the row values.

          The string, sales, is passed as the input value for lookup. The table returns the output values for the matching input rows in the order salesforce.support@salesforce.com, rose@salesforce.com, lily@salesforce.com, jasmine@salesforce.com, followed by output values for blank cells in the Contact Email column.

          URL Matches your input string to an entire URL or a part of it in decision table cells, and returns the output values for the rows that the cells belong to. The output is sorted by the sort order for the input columns that’s defined in the decision table.

          A decision table column is configured like this:

          • Column: Company Website
          • Data Type: URL
          • Operator: Matches
          • Sort Order: Ascending with Blank Values Last

          The Company Website column has these row values:

          • www.salesforce.com
          • www.salesforce.org
          • www.example.com/home
          • www.example.org

          The string, org, is passed as the input value for lookup. The table returns the output values for the matching input rows in this order starting with blank values: www.example.org/home and www.salesforce.org.

          Picklist

          Matches your input value to an entire value or a part of the value in decision table cells, and returns the output values for the rows that the cells belong to.

          Output sort order doesn’t apply to columns of the Picklist data type.

          A decision table column is configured like this:

          • Column: Status
          • Data Type: Picklist
          • Operator: Matches

          The Status column has Draft, Active, Draft, and Not Applicable as the row values.

          The string, Dra, is passed as the input value for lookup. The table returns the output values for the rows whose Status column cells contain the term Dra and the rows where the cells in the Status column are blank.

           
          Loading
          Salesforce Help | Article