You need to sign in to do that
Don't have an account?
Lakshmi S
How append a date field to string filter in apex?
Requirement: I want to search Opportunity records based on closed date from the VF page. How to pass the date field to dynamic string query in apex?
I am getting below error.
Error:
unexpected token: '2021-03-01'
Please advise how to resolve this error.
sample code below:
---------------------------
if(closedDate != Null ){
strFilter += 'AND Close_Date__c ='+closedDate;
}
I am getting below error.
Error:
unexpected token: '2021-03-01'
Please advise how to resolve this error.
sample code below:
---------------------------
if(closedDate != Null ){
strFilter += 'AND Close_Date__c ='+closedDate;
}
>> https://developer.salesforce.com/forums/?id=906F00000008nAXIAY
as mentioned in the above example can you try 2021-03-01T00:00:00Z if this works?
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
Tellthebell (https://surveyforcustomers.com/tellthebell-com)
Taco Bell customer experience survey needs a valid taco bell receipt to enter in TellTheBell survey. As soon as they open www.tellthebell.com they will be asked to answer some questions to rate the customer feedback.