using setreq.AppointmentStatus = -1; ... i get this innerxml error : -<decription>The specified object was not found.</decription> although i am sure its not a invalid GUID because i can delete that same object using the GUID...
using setreq.AppointmentStatus = 2;... i get this innerxml error: <decription>State code is invalid or state code is valid but status code is invalid for a specified state code.</description>
but i am not sure if thats the line causing the error (but i think it is) so i posted the function...