You need to sign in to do that
Don't have an account?
Jayanth Thathapudi
Field is not writeable: OpenActivity.OwnerId
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
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
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