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
JBo1980JBo1980 

Apex Code into SF - Integration

We have a large Json file to come back into SF via Apex - the file contains every line whether it is edited or not which results in 1400 lines coming back for each update.  Is there a way to ensure SF is only picking up the edited fields and not every single line?  For example, you only edit the numbers of the street but you are still updating the street, city, state, country - but you only want the street updated.
NagendraNagendra (Salesforce Developers) 
Hi,

I just tried updating an account without changing anything in execute anonymously. The account last modified date doesn't change. I don't think Salesforce will update fields that haven't changed. However, it will still take up one of your DML rows. May I request you please confirm that are you trying to save out on DML rows or simply trying to prevent unnecessarily saving fields?

Thanks,
Nagendra
JBo1980JBo1980
Trying to save out DML and API hits - this occurs about every 10 seconds if there is an update to a file but we have a large amount of customers and edits throughtout the day.