Skip to main content
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
1 件の回答
  1. 2019年7月25日 10:57
    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