function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
msaz87msaz87 

Use REST to get a list of updated records only when specific fields are updated

I'm trying to use the REST API SObject Get Updated resource to give me a list of updated/deleted Accounts during a period of time, but I'm getting bogged down by irrelevant updates.

Ideally, I'd like to only bring in Accounts that had changes to specific fields during that period of time. Is that possible?

Example: I want a list of Account Ids for any Account that had its name changed during a period of time. When I use Get Updated, it gives me those Ids as well as every Account Id that had any other change that I don't care about (e.g. address change).
Ravi Dutt SharmaRavi Dutt Sharma
You have to write your own logic to get that information. The standard SObject Get Updated will give you all the records which were updated between the start and end params provided by you.
msaz87msaz87
Write my own logic via the API or via APEX?
Ravi Dutt SharmaRavi Dutt Sharma
You have to write that in Apex. Thanks.