activities
latest
false
UiPath logo, featuring letters U and I in white

Integration Service Activities

Last updated Feb 19, 2026

Search Records

Project compatibility

Windows | Cross-platform

Overview

DescriptionAPI MethodAPI Path
Search one or more records of a standard or custom Salesforce object (for example, Lead or Opportunity) using filter criteria. GET/searchRecords

Input

ParameterDescriptionData Type
Select objectAPI name of the Salesforce object to search (standard or custom). Depending on the object chosen in this field, the activity is populated with property fields specific to that object. string
WhereAdd a filter using the Filter builder or type an SOQL WHERE expression. For example, LastModifiedDate >= '2014-10-12'string
FieldsComma-separated list of fields to return in the responsestring
Include deletedIndicates whether deleted records should be included in the search results boolean
Nulls lastIndicates whether records with null values should be sorted lastboolean
Order byComma-separated list of fields to sort the results bystring
Max recordsMaximum number of records to return in a single responseint32
Return total countIndicates whether the total number of matching records should be returned integer

Output

ParameterDescriptionData Type
ResponseSearch results containing the matching Salesforce records and metadataObject
Note:
  • In API workflows, a single response object is returned as the output. Any required fields can be extracted directly from this object.
  • In RPA workflows, some output parameters may differ, but the necessary values can still be retrieved from the response object even if they are not explicitly exposed.

Using the query

The CEQL (“Where” filter) provides a standard way to search across all the connectors. Many API providers support some form of searching in their APIs but each one approaches searching differently. Rather than having you research how to query each resource at a provider, we've normalized your search experience. It translates your queries to the API provider's search syntax. You compose queries with available query connectors field selection. Each connector allows different components of the query, but in most situations you can use some common parts.

Query Reference
Query ComponentSyntaxExampleDescription

CEQL query

the "where" expression

1<field><operator><value> <AND/OR> 2<field><operator><value> 3... Department!='Procurement' AND Name='John'

The expression or expressions specifying what to search and what objects to return in our result set. Refer Valid CEQL Operators section below.

This is made up of a left­ hand ­side (LHS), an operator and a right­ hand­ side (RHS).

Valid CEQL Operators
OperatorDescriptions
ANDTRUE if all the conditions separated by AND is TRUE
ORTRUE if any of the conditions separated by OR is TRUE
=Equal to
!=Not equal to
<Less than
>Greater than
<=Less than or equal to
>=Greater than or equal to
LIKETRUE if the operand matches a pattern
INTRUE if the operand is equal to one of a list of expressions
IS NULLTRUE if a NULL value is found
LIMITLimit the number of records to the specified number
Examples
OperatorExample
Equal Operator (=)Name='Edge Communications'
AND OperatorName=’Account Name’ AND Industry=’Electronics’
OR and Greater Than (>) OperatorsLastModifiedDate>'2018-01-15T00:00:00.000Z' AND (Name='Account Name' OR Industry='Apparel')
LIKE OperatorName LIKE 'Acc%'
Greater Than or Equal To (>=) OperatorAnnualRevenue >= 100000
  • Project compatibility
  • Overview
  • Input
  • Output
  • Using the query

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.