Hi All,
I am working on Appointment entity.
My requirement is, as soon as user Save the Appointment record in CRM, one OOB workflow will run and it will call custom workfloe internally.
In Custom workflow, I am using the below code:
// Sets up and creates an outlook calender entry
Outlook.Application outlookApp = new Outlook.Application();
// creates new outlook app
Outlook.AppointmentItem oAppointment = (Outlook.AppointmentItem)outlookApp.CreateItem(Outlook.OlItemType.olAppointmentItem);// creates a new appointment
Also I tried to use EWS services:
In Custom workflow, I am getting the below error:
“The request failed. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.”
Here i am simply using
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
Can one please suggest or guide me that where i am doing wrong? As this is very critical and urgent requirement, I need to fix this issue ASAP.
Please suggest.
Regards,
Ashwini Kumar