Not getting CreateItemType

Hi,

I want to send meeting invite using delegate and found the related article "https://msdn.microsoft.com/en-us/library/bb856541(v=exchg.140).aspx

I am refering to Microsoft.Exchange.WebServices.dll and using the namespace also.

But not finding the CreateItemType class.

Please let me know what I need to use to avail this class.

Thanks,

Nibedita

August 13th, 2015 8:38am

This is a better article I think: https://msdn.microsoft.com/EN-US/library/office/dn641956(v=exchg.150).aspx. The article you linked is outdated and doesn't use the component that you're using, it's using proxy classes. The article I linked uses the component you use, so hopefully you shouldn't have much trouble.
Free Windows Admin Tool Kit Click here and download it now
August 13th, 2015 2:23pm

This is a better article I think: https://msdn.microsoft.com/EN-US/library/office/dn641956(v=exchg.150).aspx. The article you linked is outdated and doesn't use the component that you're using, it's using proxy classes. The article I linked uses the component you use, so hopefully you shouldn't have much trouble.
August 13th, 2015 6:20pm

This is a better article I think: https://msdn.microsoft.com/EN-US/library/office/dn641956(v=exchg.150).aspx. The article you linked is outdated and doesn't use the component that you're using, it's using proxy classes. The article I linked uses the component you use, so hopefully you shouldn't have much trouble.
Free Windows Admin Tool Kit Click here and download it now
August 13th, 2015 6:20pm

Thanks for your reply.

But I am not able to send meeting from delegate user. I am using the following code to send.

     
            ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);            
            service.Credentials = new NetworkCredential("adminusername", "password"); 
            service.UseDefaultCredentials = false;
            service.AutodiscoverUrl("admin@test.com", RedirectionUrlValidationCallback);     
            
            DelegateUser newDelegate = new DelegateUser("delegate@test.com");
            newDelegate.Permissions.CalendarFolderPermissionLevel = DelegateFolderPermissionLevel.Editor;            
            List<DelegateUser> delegatesToAdd = new List<DelegateUser>();
            delegatesToAdd.Add(newDelegate);
            Mailbox mailbox = new Mailbox("admin@test.com");
            Collection<DelegateUserResponse> result = service.AddDelegates(mailbox, MeetingRequestsDeliveryScope.DelegatesAndSendInformationToMe, delegatesToAdd);                      
            
            Appointment appointment = new Appointment(service);            
            appointment.Subject = "Status Meeting";
            appointment.Body = "The purpose of this meeting is to discuss status.";
            appointment.Start = new DateTime(2015, 8, 6, 10, 40, 0);
            appointment.End = appointment.Start.AddMinutes(15);
            appointment.Location = "Conf Room";
            appointment.RequiredAttendees.Add("attendee@test.com");            
            
            //appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy);
            appointment.Save(new FolderId(WellKnownFolderName.Calendar, "admin@test.com"), SendInvitationsMode.SendToAllAndSaveCopy);

The above code is sending mail from ADMIN not from DELEGATE.Please suggest how can I send it from delegate.

August 17th, 2015 6:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics