You are here:
FieldCondition Class
Builds a SOQL condition for a field based on the specified operator. Extends OperatorCondition.
You are here:
Builds a SOQL condition for a field based on the specified operator. Extends OperatorCondition.
| Available in: Lightning Experience |
| Available in: Enterprise and Unlimited Editions with Life Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the Life Sciences Customer Engagement managed package. |
Creates an instance of FieldCondition.
This method accepts these parameters.
| Parameter | Type | Description |
|---|---|---|
| field | String | The name of the field to use as part of a condition. |
| operator | String | The operator to use as part of a condition. |
| value | String | The value to use as part of a condition. A null value is supported for the = and != operators. |
Returns the generated SOQL query as a string.
await new ConditionBuilder(
"Inquiry",
new FieldCondition("Type", "=", "MedicalInquiry")
).build()
// Returns: "Type = 'MedicalInquiry'"

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.