Skip to main content

Questions tagged [where]

The syntax of the condition expression in a WHERE clause of a SOQL query includes one or more field expressions. You can specify multiple field expressions to a condition expression by using logical operators.

0 votes
1 answer
115 views

I am using the Bulk API and when I run a query with a condition WHERE LastModifiedDate > 2024-04-13T00:00:01.000Z it returns around 1000 records. But when I run another query, with WHERE ...
Rogowiak's user avatar
1 vote
1 answer
471 views

Introduction I am trying to use the "where" parameter provided by the "getRelatedListRecords" of "uiRelatedListApi" within @wire in LWC (reference 1). Specifically, I am ...
yanaspaula's user avatar
0 votes
2 answers
2k views

I am getting error SQL Errors occurred while processing retrieved data: Error converting data type varchar to bigint. This my Query and its come from the where clause. Anyone help me to resolve this ...
sThirumagal93's user avatar
0 votes
2 answers
431 views

I have a SQL where I want to pull in all Landlords with more than one Pending Request. The trouble I'm having is not knowing where to place the syntax that will populate the field called '...
Greg Beazley's user avatar
0 votes
1 answer
1k views

I want to retrieve the first x records in my dataset. Logically, I created an Auto Number field, but it's acting like a string. Example: [SELECT id__c FROM Person__c WHERE id__c < '4'] incorrectly ...
Kenneth Hippolite's user avatar
1 vote
0 answers
4k views

I'm currently working on cleaning up the opportunity object and I'm facing an issue with getting the field references(Apex, Components, Workflow, Process Builder, Email templates, Reports) of complete ...
Pavan tej's user avatar
  • 1,440
0 votes
1 answer
1k views

I have a custom object that has for name a string that matches the BillingPostalCode field from different Accounts objects. I'm querying some accounts, and now I want to limit a query of this custom ...
Santiago Barboza's user avatar
2 votes
2 answers
1k views

I need to build an interface to allow a user to filter record by the field chosen by the user. I know that I can use Text Area fields in the WHERE Clause but I can't use Long Text Area field or Rich ...
Patlatus's user avatar
  • 18.8k
0 votes
1 answer
251 views

I have two sobjects PriorityCase__c (Person__c(master-detail to Person__c), Priority__c) and Person__c (name). And I want to select Person__c with the highest Priority__c. The highest priority is 1. ...
Zalivada's user avatar
0 votes
1 answer
295 views

I am not a developer but I am trying to modify this controller that is available in a component I installed via app exchange. For what i understood the code is just converting this query into a string ...
Brian23Gt's user avatar
  • 141
-2 votes
1 answer
1k views

I have SOQL like this: [SELECT id FROM CONTACT where lastName =:lastName AND firstName = :firstName] But what to do if there are only lastName variable? What if there are 3 variables or more? I ...
Nistelarti's user avatar
0 votes
1 answer
1k views

We have a requirement, after leads are converted, we are sending data to a partner about them. We have a batch process which will periodically look for newly converted leads, send the data to the ...
Brian Kessler's user avatar
2 votes
1 answer
10k views

I'm having problems trying to filter a query by CreatedDate using a date range. The query returns always a wrong set of records. For example, if I want to get all records created until 2020-07-28, it ...
Emmanuel_M's user avatar
1 vote
0 answers
350 views

I'm working in the developer console using the tooling api to write a query against permission sets. This query works: select Name, Label, Description, ManageableState, NamespacePrefix, Type from ...
Mike Jones's user avatar
0 votes
1 answer
4k views

I have a dynamic Soql in which I want to pass a set. I get an error: System.QueryException: expecting a colon, found '{' Anonymous window Set<Id> idSet = new Set<Id> (); idSet.add('...
Thomas's user avatar
  • 2,320

15 30 50 per page