+ Start a Discussion

Fetch system fields data of recently inserted records


I am new to apex, Please help in following scenario.

I select an object name from Picklist and this object name gets stored in a variable.

and then dynamically records are inserted into this object.

After the insertion / updation of these records, i want to fetch value from 'Created By' and 'Last Modified By' system fields of these records and display it on VisualForce page dynamically.