我正在跟踪此链接Book An Appointment In CRM Dynamics Using C#,并且能够在CRM Dynamics日历中创建约会,而约会又返回了GUID,并且在Dynamics Calendar中也可见。
另外,我可以通过使用实体SetStateRequest
如下将约会状态从“打开”更改为“计划的”,但仍然无法将此约会同步/显示在我的Outlook日历中。
任何建议将不胜感激。谢谢
Guid _appointmentId = organizationService.Create(appointment);
var state = new SetStateRequest
{State = new OptionSetValue(3),
Status = new OptionSetValue(5),
EntityMoniker = new EntityReference("appointment", _appointmentId)};
var stateSet = (SetStateResponse)organizationService.Execute(state);