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
RPKRPK 

Determine object and field names changed

Is there any to determine which object was created or updated and which fields were changed?

Any SOQL query or something? When user updates the record and clicks Save, immediately that query or code should fire and return me the Object name and corresponding fields which were changed.

I don't want to use Triggers because I want to implement this on all objects.
Waqar Hussain SFWaqar Hussain SF
I think there is no way to retreive such data using SOQL. You will have to use trigger.old and trigger.new to determine which fields were updated. 
RPKRPK
But using triggers is not feasible. Trigger needs to be implemented on each object.

Alternatively, is there any way to invoke a class whenever an object changes. If yes, I just need the object name as parameter to that class.