i have one requirement on dynamic field mapping, i have 2 objects, Main_object and Staging_object, i will insert records in staging object by using integration, after record get insertd in staging object , i will replicate same record into Main_object , to active this i have to map 20 fields before compare records example: mainobj.field1__C= stageobj.feild1__c .. till 20 fields, can any one suggest me how to achive this finctionaly dynamically.
Thanks