function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Select a.Id From Account a Where a.LastModifiedDate = TODAY AND HOUR_IN_DAY(a.LastModifiedDate) > 1
SELECT id,name FROM Account where CreatedDate = 2012-11-06T06:46:56.000Z
You have to write following SOQL query for display last updated record within 1hour.
Let me know if you need any help regarding this,
Thanks,
Vijay
You can use datetime.now().addHours(-1); this will give you eact tiem of last 1h...then in query you can just add if created date is greater than equal to this time. then it will give you the results those are created in last one hour.
Thanks
In below query just past last one hr date and time.
SELECT id,name FROM Account where CreatedDate = 2012-11-06T06:46:56.000Z
Let us know if this will help you
Thanks
Amit Chaudhary