I have a connected app that will pull data from a salesforce Object. In order to do so, am executing the following query (and sending it through the REST API as form-url-encoded):
SELECT Name,Id,Type FROM Account WHERE Type='Customer'
When executed, it gives me the count of the objects that the query returned, as well as such objects. Since I am doing some synchronization amongst systems, I wanted to know if it was possible to put a constraint in the query such as this:
SELECT Name,Id,Type FROM Account WHERE Type='Customer' AND Update_At=CURDATE()
CURDATE()
does not necessarily have to be a function native to SOQL (I can just pass a date/timestamp/etc) and the operand =
can be <=
and >=
as well so I can get the SObjects that match that timeframe.
I am merely interested in getting just the Accounts who have been updated since x date to be concise. I know about the If-Modified-Since
header, which will return (or not) the object provided the ID if the SObject has been modified since the provided date. This is not a solution for me, since I would have to do n requests + 1 just to check if all the accounts have been updated (or is this the actual way of doing it?)