10 answers
Hello Sagarika Rout,Your post is helpful if we make some changes:
But there is a problem to update non-editable fields.Please help me to update the record...!!!!Account acc_Object = new Account();
SObject sobj = acc_Object;
for(String Field_API_Name: m1.keySet())
{
if(sobj.get(Field_API_Name).isEditable())
{
sobj.put(Field_API_Name, m1.get(Field_API_Name));
}
}
Account update_Acc = (Account)sobj;
update update_Acc;