Skip to main content
Jayanth Thathapudi (Accordion) 님이 #Apex에 질문했습니다
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