none
修改案例的状态为已解决,代码怎么写 RRS feed

全部回复

  • SDK里面有例子,C#么?
    // Set the appointment's properties.
    appointment.description = "This is a test of the book message.";
    appointment.scheduledstart = new CrmDateTime();
    appointment.scheduledstart.Value = DateTime.Now.AddHours(1).ToString();
    appointment.scheduledend = new CrmDateTime();
    appointment.scheduledend.Value = DateTime.Now.AddHours(2).ToString();
    appointment.location = "Office";
    appointment.subject = "Testing book appointment";
    appointment.requiredattendees = new activityparty[] {party};
    appointment.statecode = new AppointmentStateInfo();
    appointment.statecode.Value = AppointmentState.Open;
    appointment.statuscode = new Status();
    // This is the default value.
    appointment.statuscode.Value = -1;  
    

    Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com, http://www.mscrm.cn
    2010年6月10日 15:41
    版主
  • 是案例实体(Incident),不是约会。。。

    SetStateIncidentRequest request = new SetStateIncidentRequest();
    request.EntityId = id;
    request.IncidentResolutionState = IncidentState.Resolved;
    request.IncidentResolutionStatus = 5;
    service.Execute(request);
    我这样写 ,会报错
    2010年6月11日 1:19