我正在尝试添加更多必需的与会者。但是我遇到了错误,代码是-2146233087。
activityparty activityParty = new activityparty();
activityParty.partyid = new Lookup();
activityParty.partyid.Value = contact.contactid.Value;
appointment.requiredattendees = new activityparty[] { activityParty };
service.Update(appointment);