EWS: Reading of linked calendars over WebServices -- How can i get the necessary email-adresses?

What i want to do:
i'm working on an service, witch should connect to an exchange-server an get all changed appointments to store them
in an extra database.
What i already have:
I have the servnce yet done, except of one thing.
My problem:
The idea was to create a dummy-exchange-user, witch has linked all the shared calendars from oder users. So this
user can see all the shared calendars in outlook.
I can already read this linked calendars with FindItemType(), but i need the email-address of each mailbox witch
belongs to the linked calendars.
for example:
z.B.
User1 has the address [email protected]
User2 has the address [email protected]
User2 has shared his calendar and User1 has linked this shared calendar.
If i don't specify the email-address, i get all appointments auf the mailbox, witch i'm connected to 8in this
example the calendar of User1). If i specify the email-address of User2, i'll get the calendar of user2.
Here my code (i shorted it a little bit):
Private Function GetAppointmentsFromExchange(ByVal emailAdress As String, ByVal StartZeit As Date) As List(Of GroupWareAppointment)
Dim lAppointmentList As New List(Of GroupWareAppointment)
'Create new Find-Request
Dim lFindRequest As FindItemType = New FindItemType()
lFindRequest.Transversal = ItemQueryTransversalType.Shallow
lFindRequest.ItemShape = New ItemResponseShape()
lFindRequest.ItemShape.BaseShape = DefaultShapeNamesType.Default
'Specify the folder to search
Dim lCalendar As DistingishedFolderIdNameType.Calendar
lCalendar.Id = DistinguishedFolderNameType.calendar
'if not my own calendar, then specify the email-address of the linked calendar
If Not (String.IsNullOrEmpty(emailAdress)) Then
lCalendar.Mailbox = New EmailAddressType()
lCalendar.Mailbox.EmailAddress = emailAdress
End If
lFindRequest.ParentFolderIds = New BaseFolderIdType() {lCalendar}
'some nonrelevant code
'Send Request to Server
Dim lResponse As FindItemResponseType = myExchangeServerAccess.FindItem(lFindRequest)
'some nonrelevant code
Return lAppointmentList
End Function
This works pretty fine. But i have to know all the email-addresses of the linked calendars.
The problem is now, that i don't know how to get this email-addresses. I looked a lot in the internet, but it seems,
that ews doesen't have such a function.
The only solution i found was to look in the active directory. But this won't work because active directory is not
realy connected to exchange.
So i need either a list of the exchange-users (i need only the email-adresses of the connected calendars, not of all
the users on exchange) or a other solution, how i can get appointments from linked calendars without to specify the
email-adresses.
Does anybody have a tip for me?
(Sorry for my bad english)

Maybe somebody is interessted, how i solved it.
My solution isn't pretty, but it works.
First i get only the users, who have an mailbox on exchange from active directory.
Then i try to get their calendar in a loop. If i don't hav the permission for the calendar, i try the next user.
Getting the whole appointments with GetItem() was very slow. So i get only the ItemIDs an then get only this propertys of an appointment, witch i need (AditionalPropertys). This works faster.
His Method works, but there is a problem. I can't see, witch appointments were deleted.
So i tryed SyncFolderItem(). This wors very fine. I get the new, the changed an the deleted (not the whole appointments, because they are deleted. only the IDs).
The only problem is the Property SyncState. This property defindes, from when SyncFolderItem() should sync. But SyncState isn't a date. It looks like a ID. I recive it every time, i start SyncFolderItem().
So i have to store the recived SyncState to use it für the next sync. Otherwise the sync will start from the begining.
It's pitty, that it isn't possible to use a date also.
I thes days i will try the notofications, so that exchange notifiy me, when there is a change. I don't know, if its true, because some books tell, that otofications works only with one mailbox (the mailbox i'm connected to), an some books tell opposite.
I will try it.

Similar Messages

  • Remember only the icloud email address, forget the password, birthdate, and verification questions. How can i get the icloud email back?

    Remember only the icloud email address, forget the password, birthdate, and verification questions. How can i get the icloud email back?

    Go to https://getsupport.apple.com ; click 'See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Forgotten Apple ID security questions'.

  • I just changed my email adress, so i changed my itunes store adress to. but how can i get the new store adress on my Iphone ?

    I just changed my email adress, so i changed my itunes store adress to. but how can i get the new store adress on my Iphone to buy apps anew ?

    Go to Settings --> Store, click on your Apple ID and log out, then log in with your new details

  • I deleted a calendar tab. How can I get the data back?

    I accidently deleted the calendar tab of my wife and deleted all her apoointments on her iphone and the iMac. I am in ****. How can I get the calendar data back=?

    Sync is only oneway, from PC to your device. Unless you have the music on your PC, iTunes is going to wipe out what you have on your device if you are syncing to a new library.
    You can only transfer Purchased music over to Itunes on your PC.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    As for you own music, you may have to use a third party software. A good Free one is called Sharepod which you can download from Download.com here:
    http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2

  • I accidentally deleted my account under the Mail, Contacts, Calendars setting. How can i get the account back?

    In settings > Mail, contacts, calendars> account. i was trying to delete the email part, but i didnt know it also deleted the notes part. i really need the notes. how can i get it back? the email wasn't an iCloud account.

    If you don't have an Installer disk then you can't install without a purchase. Do you have the grey SystemRestore disks that came with your Mac? It's on that. No, iPhoto is not part of Lion.
    Regards
    TD

  • I have Iphone3G - my email address was changed automatically to an old address after an software upload -- how can I get the correct email back?

    When I first purchased my phone in January I had an email address of [email protected] but found that the phone and comline weren't talking to each other so I set up email [email protected] and everything worked perfectly   -- calendar, e-mail, etc. Last week a message appeared on my phone instructing me to upload new software. My [email protected] for icloud was replaced my the old email address. The account was locked so I went to iforgot.apple, etc and reset it. Then I took the option to change the email and on the computer all looks correct but my phone still has my old e-mail. I've turned it off and on hoping the new info would be loaded but no luck. Any ideas?

    I kind of agree with Philly on this one.  If you get a new email address, there is no need to establish an entirely new account to use that address.  You just need to modify your account to show the new email address.  This way all your purchase history and rights to purchased apps stays in place.  Creating a new iTunes/Apple account each time your email address changes really doesn't make sense in my opinion.   I only point this out for future searchers who end up on this thread.

  • How can I get a second email adress?

    I need a additional email adress with my apple account. How do I get one?
    -without cost?
    -with cost?
    Thanks for your support.
    Freddy

    Why a second email address for one Apple ID?
    What follows may help
    Look here
    http://support.apple.com/kb/HT5699
    you may need to call them if you get messed up
    You can have as many Apple ID;'s as you want but they all have the following points to consider.
    Your apple ID  primary email address
    Your date of birth
    your 3 security questions
    your alternate email address
    your rescue email address
    It is really important to keep a record of all of the above.
    Also 4 and 5 work best with unique emails per account
    The other problem is that if you have set Find my... on any kit, using the old Apple Id then it becomes harder to do.
    It is do-able, I spent 3 hrs on the fone over 3 days getting it done on an ipad and iphone
    Message was edited by: qazxsw52

  • Using Mail as backup for Gmail: how can I get the Sent email folder?

    Just got this email.
    I have removed all the links etc, Posting it for info
    I have opened a Mail account and its loading up the Gmail, but there is nothing in the Sent box.
    Will they come over eventually and if so whewre?. there is 5Gb to transfer
    Thanks.
    We have recieved your request to close the email address: [which I deleted ].
    Kindly note that your request is being processed and your account information will be removed  from our servers within 48hrs after this message is read 
    If you did not make this request or recieved it in error and you wish to keep using your account and gmail services,  kindly indicate this by using  the link below
    I choose to keep my account and cancel termination request
    If you have chosen to keep your account, follow the step in the link above and the termination request will be cancelled.
    However, if you still want to terminate your account, no further action is required from you.
    Mail Administrative Dept   .
    Gmail.com

    I don't quite understand what you've posted. Have you cancelled your Gmail account?
    If you've just connected Mail to Gmail, and you've used IMAP to connect to it, you'll probably have an "All Mail" mailbox towards the bottom left of the screen (under the GMail mailbox). In there should be a Sent Mail box. All your Sent mail should be in there. To have it appear in the Sent mailbox at the top left of your screen, highlight Gmail's Sent Mail mailbox, click the Mailbox menu at the very top of your screen, and click "Use this Mailbox for - Sent".
    Matt

  • Apple ID email is no longer in use.  How can I get the verification email sent somewhere else?

    I have multiple Apple ID's.  One of which is an email address for a company I no longer work for.  I want to download all my music into the cloud, but can't verify the ID with that email.  Any ideas?
    Thanks!
    Shine

    more than likely that app was downloaded using that apple id.. unless you know the password, you will not be able to update.. delete the app and re-download using your new apple id

  • TS3988 How can I get the verification email resent?

    The email address I had on file is an old one that I had to reactivate so I can get the verification email but my phone won't let me resend the verifcation email.

    Welcome to the Apple Community.
    Put in a request for another verification e-mail to be sent to you.
    Start here, change your country if necessary and go to manage your account

  • My wife and I each have an iPhone and an iPad Mini.  We have separate iTunes accounts.  She just finished reading a book on her iPad Mini.  Now I want to read it on my iPad Mini.  How can I get the book on my iPad Mini?

    My wife and I each have an iPhone 4s and an iPad Mini.  We have separate iTunes accounts.  She just finished reading a book on her iPad Mini.  Now I want to read it on my iPad Mini.  How can I get the book on my iPad Mini?

    Thank you for your reply Domingo.  Your suggestion worked as far as sending me a link to buy the book at iTunes.  But it did not allow me to download the book from my wife's account.  I did finally get an answer from Apple.  It took an entire day of emailing back and forth and the final answer was relatively easy once Apple finally decided to give up the solution.  Basically, you have to open ibooks and sign out.  Then you have to sign into ibooks using the book purchaser's Apple ID and password.  Then you can download the book onto your device.  Not too bad, huh?  It only took a whole day of Apple people sending me wrong instructions before they figured it out.  Geez.  What a disappointing experience.

  • I updated my iPhone 5c to iOS8 and lost all my calendar events.  How can I get them back?

    I updated my IPhone 5C to iOS8 and lost all my calendar events.  How can I get them back?  I had it saved to the cloud but then changed it because I did not want to save everything to the cloud.  I changed it back and still don't have any events.

    Are they still listed on your device when you go to Settings>iCloud>Storage>Numbers?  If so, they should still be in iCloud but you may need to contact support to find out why the Numbers app isn't able to access them: http://www.apple.com/support/icloud/contact/.

  • How can I get the link not to override my style sheet formatting?

    I have an html page with text that has a style sheet applied
    to it. When I insert a link into parts of the formatted text, the
    style sheet formatting is lost in the linked text (the text for
    mylars, shapes and number shapes becomes smaller: see code below).
    How can I get the link not to override my style sheet
    formatting?
    Here is the html code I am referring to:
    <span class="bodyheader20pt">Fall into winter's biggest
    celebration with our New Year's Day <a href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=A4&sc=184&PageNumbe r=1"
    style="text-decoration:none">mylars</a>, <a href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&sc=184&PageNumbe r=1"
    style="text-decoration:none">shapes</a>, and 2-0-0-9 <a
    href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&sc=166&PageNumbe r=1"
    style="text-decoration:none">number
    shapes</a>.</span>
    I am using Dreaweaver CS3 on a Mac running OSX
    10.4.11.

    Show us this rule --> bodyheader20pt?
    Also, having this in your three anchor tags -
    style="text-decoration:none" -
    will prevent your anchors from displaying any stylesheet
    style for
    text-decoration.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "ellfwar" <[email protected]> wrote in
    message
    news:geqiph$foq$[email protected]..
    >I have an html page with text that has a style sheet
    applied to it. When I
    > insert a link into parts of the formatted text, the
    style sheet formatting
    > is
    > lost in the linked text (the text for mylars, shapes and
    number shapes
    > becomes
    > smaller: see code below).
    >
    > How can I get the link not to override my style sheet
    formatting?
    >
    > Here is the html code I am referring to:
    > <span class="bodyheader20pt">Fall into winter's
    biggest celebration with
    > our
    > New Year's Day <a
    > href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=A4&
    > sc=184&PageNumber=1"
    style="text-decoration:none">mylars</a>, <a
    > href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&
    > sc=184&PageNumber=1"
    style="text-decoration:none">shapes</a>, and 2-0-0-9
    > <a
    > href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&
    > sc=166&PageNumber=1"
    style="text-decoration:none">number
    > shapes</a>.</span>
    >
    > I am using Dreaweaver CS3 on a Mac running OSX 10.4.11.
    >

  • How can i get the music i have on my ipod over to the new computer?

    how can i get the music i have on my ipod over to the new computer?
    The old computer has crashed and i can't get it out from that one.
    So the problem is that i want my old music on my new computer.
    Someone please help.

    Sven,
    The article linked below details how to go about transferring your purchased content from your iPod to your new computer.
    Re-download or transfer your iTunes Store purchases from an iPhone, iPad or iPod to a computer
    https://support.apple.com/en-us/HT201267
    All my best,
    Allen

  • I have a macbook pro can can log into a server, but my new iMac with lion can't even see the server--both are over wifi- how do i get the new iMac to see the server?

    i have a macbook pro can can log into a server, but my new iMac with lion can't even see the server--both are over wifi- how do i get the new iMac to see the server?

    Without knowing what you have tried please open System Preferences - Sharing - File Sharing and select File Sharing. If you still have trouble you can call AppleCare in the morning when they re-open. You have 90 days of telephone support if you haven't already bought AppleCare.

Maybe you are looking for

  • How do I change my old apple ID to my new one on imessenger.

    How do I change my old apple ID to my new one on imessenger. Is asking me for my old password but it does not recognize it.  Imessenger still recognizes my old apple id but not the password. How do i switch it to my new apple id.

  • SRM 7.0 Create Purchase Order

    Hi  SRM Gurus, We  have upgraded from SRM 3.to SRM 7.0. Our scenario is Extended classic scenario. click  on create  Purchase order. Error message is displayed "table does not contain any data" I have checked in Define Transaction type for purchase o

  • Crossdomain issue in subfolders

    For anyone who is having trouble trying to figure out why their crossdomain.xml file is not working on FLV files within subfolders, AS3 does like absolute paths for files inside your flash player. When using a video component make sure you use relati

  • Custom Field in TCode VA02, Screen 102, Program SAPLEB

    Hi, We ant a custom field on screen number 102 program SAPLEBNE, TCode VA02. To achieve this we have added a custom field in structure CI_EBANDB in table EBAN. However the field is not visible on the screen. To navigate to the screen, where we want t

  • Is the somewhere where I can buy an iPad at charles de gaulle airport ??

    I wanted to buy an iPad, Is the somewhere where I can buy an iPad at charles de gaulle airport ?? Thanks