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
mh1974mh1974 

Apex code without hardcoded field names

I'm writing a trigger to determine which fields have changed when an sObject is updated. This code must be future-proof, so, I do not want to hard code any field names - does anyone know of a way of acheiving this?
Best Answer chosen by Admin (Salesforce Developers) 
IanRIanR

Have a look at this recent thread: http://community.salesforce.com/sforce/board/message?board.id=apex&thread.id=19468

 

Should answer your query nicely :)

 

Ian Randall

All Answers

IanRIanR

Have a look at this recent thread: http://community.salesforce.com/sforce/board/message?board.id=apex&thread.id=19468

 

Should answer your query nicely :)

 

Ian Randall

This was selected as the best answer
mh1974mh1974
Brilliant!  Just what was needed,  thanks very much.