List<OpenActivity> openList= new List<OpenActivity>();for(OpenActivity oA :OpenActivitieslist){ oA.OwnerId=''012200000000MqA'; openList.add(oA); } Update openList;While I am trying to upade it is showing error as "Field is not writeable: OpenActivity.OwnerId"Any help is highly appreciated:)Thanks,Jay
Hi Jayanth,Please check the Field type in Object and also you have given double quotes to oA.OwnerId (oA.OwnerId=''012200000000MqA';).As per my understanding it was expecting ID but you gave String type.Please check it