I have one requirement, Actually using below code i save object record in database dynamically.
Schema.SObjectType targetType = Schema.getGlobalDescribe().get(strFieldName); SObject myObj = targetType.newSObject(); insert myObj;
Note: using above code related object record only created.
But I gave some fields information here but those fields information is not saved in this record
How to save fields information also related object record Dynamically?