You need to sign in to do that
Don't have an account?
Selva
Can we capture the fields which are modified before save?
Hi,
Is it possible to determine what fields were modified by a user when saving an object in Salesforce. For example, a user accesses the Account object and updates the Description and Customer Group values. When they click Save, can that action be captured and those 2 fields identified as modified for further processing in an easy fashion?
regards
Hi Andrew,
Thanks for your response. Could you please share us more about this down-the-middle use case,as you are saying it is possible.
It would be very useful, if you could guide me on this , as this is the first time am going to do this.
Regards
The article I referred to in my last response introduces Apex and discusses triggers at a basic level. If this is indeed your first exposure to Apex then you will probably be best off checking out the developer guide and working through the workbook tutorials on Apex and if you get really thirsty for knowledge there is a new book titled "Force.com Developer Guide: An Introduction to the Force.com Platform" in the developer library that will help.
Thanks again.
I've used to writer Apex trigger which is very critical thing and sensitive code. There is Governor limits which say how many times the SOQL query can run , after that it would throw Too many SOQL queries error. :-(
If you or anyone could lead me to some sample apex code which capture the fields which are mdofied while saving the object then that would be great. Wish to get into that code directly, as i have deadline. :-( I've sforce guide apex api guide documents and see if they specified any coding for down the middle use case. It would be helpful,if someone already done this kind of piece of code.
very much obliged.
If you're hitting SOQL query limits, chances are you're doing SOQL queries inside for loops. Don't do that.