Hi Experts ,
I want to close an appointment as completed using a plugin but it gives me the following error

at this lines the code fire the error
AppointmentRecord["statuscode"] = new OptionSetValue(1);
AppointmentRecord["statuscode"] = new OptionSetValue(3);
service.Update(AppointmentRecord);
*This post is locked for comments
I have the same question (0)