Hi, I have been able to link an ASP.NET page into exchange to display meetings from the current day for a user.
What I would like to be able to do is retrieve the same info as before (all of the meetings for the current day), but instead retrieve them from all of the users.
Is this possible?
Below is my code to retrieve that information from one user.
Thanks very much
Imports Microsoft.Exchange.WebServices.Data Partial Class Test Inherits System.Web.UI.Page Shared userEmail As String = "jsmith@mydomain.local" Shared userPassword As String = "theuserspassword" Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load Dim service As New ExchangeService(ExchangeVersion.Exchange2010_SP1) service.Credentials = New WebCredentials(userEmail, userPassword) service.AutodiscoverUrl("administrator@mydomain.co.uk") Dim foundAppointments As FindItemsResults(Of Appointment) = service.FindAppointments(WellKnownFolderName.Calendar, New CalendarView(DateTime.Now, DateTime.Now.AddDays(1))) For Each app As Appointment In foundAppointments TextBox1.Text += "Subject: " + app.Subject + vbCrLf TextBox2.Text += "Start: " + app.Start + vbCrLf Next End Sub End Class
- Edited by ddunn10 2 hours 1 minutes ago