You need to sign in to do that
Don't have an account?
kvasire
SalesForce Data Function
I am new to Salesforce coding.
How can i replicate this scenario in Microsoft sql " select * form table where modifieddate >= getdate() - 1" Salesforce coding??
Thanks for your help in advance.
Are you trying to get records where the last modified date is greater or equal to yesterday? Make your where clause "Where LastModifiedDate >= YESTERDAY"
Also see: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_select_dateformats.htm
All Answers
Are you trying to get records where the last modified date is greater or equal to yesterday? Make your where clause "Where LastModifiedDate >= YESTERDAY"
Also see: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_select_dateformats.htm
You can use System.now().addDays(-1) for getting records from any date.