Get items from ews and open in Outlook desktop client

Hi,
I have a webapplication with a screen that shows the last unread items from ews in the browser. When a user clicks the item I open the mail in owa. 
Is it possible to retrieve mail items with the ews service and the open Outlook desktop client from the browser and open a message that I received?
Regards
Danny

You have to use the HexEntryId not the EWSId eg you can get it by either using convertId and asking for the HexEntryId format or just use the PR_EntryId extended property eg
ItemView ivItemView = new ItemView(1);
PropertySet itemPropset = new PropertySet(BasePropertySet.FirstClassProperties);
ExtendedPropertyDefinition PR_EntryId = new ExtendedPropertyDefinition(0x0FFF, MapiPropertyType.Binary);
itemPropset.Add(ContactSchema.StoreEntryId);
itemPropset.Add(PR_EntryId);
ivItemView.PropertySet = itemPropset;
FolderId fid = new FolderId(WellKnownFolderName.Contacts, new Mailbox("[email protected]"));
FindItemsResults<Item> fiResults = service.FindItems(fid, ivItemView);
if (fiResults.Items.Count == 1)
if (fiResults.Items[0] is Contact) {
Contact cntContact = (Contact)fiResults.Items[0];
Byte[] EntryVal = null;
String HexEntryId = "";
if(cntContact.TryGetProperty(PR_EntryId,out EntryVal)){
HexEntryId = BitConverter.ToString(EntryVal).Replace("-","");
Cheers
Glen

Similar Messages

  • Can you delete an item from itunes and get your money back???

    hi!!! can u please tell me if you can delete an item from itunes and get your money back???
    Thanks XD

    You can certainly delete it, but you won't get your money back.
    Stedman

  • Get Items from limited list by providing username and password - C#

    I'm using the code at the following link in order to get items from SharePoint list,
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.list.getitems.aspx
    I have a SharePoint list that limited to certain users.
    How can I provide by this code (or else) a username and password and log in as a different user who has access to this SharePoint list and get its items?
    Thanks!

    Sorry, previous post didn't see you were using client object model.
    Service.Credentials = (create new credentials passing username and password)
    ICredentials credentials = new NetworkCredential("Joe",SecurelyStoredPassword,"mydomain");
                math.Credentials = credentials
    Thanks!
    Actually, my full question already posted here:
    http:  //sharepoint.stackexchange.com/questions/84917/c-why-impersonation-is-expired-while-clientcontext-executequery-is-performe
    but I was unable to post it here as a new user (images, links, lenght ...) even the link above I was need to insert spaces after "http:" to be able to post it.
    Anyway, I don't know "client object model." am I using it?
    You mentioned "Service.Credentials", What do you mean "Service"?

  • How do i get contacts from iphone to merge with outlook contacts

    how do i get contacts from iphone to merge with outlook contacts

    If Outlook already has a munch of contacts, do I need to delete them all (all but 1 unique) to sync correctly?
    I have and iPhone ith up to date contacts, and I have outlook with some of the same contacts with older info. When I sync, outlook is OK, but I get a lot of copies of the same contact on my iPhone. Now I'm not entirely sure which are the up-to-date contacts and which aren't (and there's hundred of contacts to go through).
    ...For future reference, is there a way to to send the iPhone contacts to Outlook without adding crap to my phone? Amidst the sync process I noticed and option for conflicting files and choose the "always use phone" but still wound up with a contact mess of mixed old and new on the phone.

  • I am having a big problem. I am not getting notifications from snapchat and only snapchat. I've made sure every notification setting was on and it just won't work. I have also restored my phone and deleted the app and re-downloaded it multiple times. Help

    I am having a big problem. I am not getting notifications from snapchat and only snapchat. I've made sure every notification setting was on and it just won't work. I have also restored my phone and deleted the app and re-downloaded it multiple times. It just wont give me my notifications. Help please.

    Go to Settings > Privacy > Location Services.
    Turn off SnapChat.
    Go to Settings > Notification Center
    Turn off SnapChat.
    Restart the device.
    Go to Settings > Privacy > Location Services.
    Turn on SnapChat.
    Go to Settings > Notification Center
    Turn on SnapChat.
    Test the issue.

  • I have tried to change my User id which is an email address I no longer want to use. Now I am constantly getting requests from icloud and Apple ID for my password and cant get into my icloud account.

    I have tried to change my User id which is an email address I no longer want to use. Now I am constantly getting requests from icloud and Apple ID for my password and cant get into my icloud account.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • It doesn't work when I press "transfer purchased items from ipod" and I don't know specidicly whitch item I need to transfer

    It doesn't work when I press "transfer purchased items from ipod" and I don't know specidicly whitch item I need to transfer.
    Whenever i press "transfer purchased items from ipod", itunes sync's for about 3 seconds, but I still can't install updates on the ipod without itues warning me about purchased items on the ipod, that aren't in the itunes library. I've tried folowing the steps in itunes help, but I can only find a step guide for when you know the specific item that needs transferring, and I donøt know that specific item.

    This Apple Tech Note explains the process:
    http://support.apple.com/kb/ht1848
    It will transfer all purchased items that the computer you are transferring to is authorised to play: you don't have to select the items.

  • My iphone 4s crashes too much when i download and app from store and open it its freeze or crash and restart the phone i think i am having big problem with this device i restored it to factory settings and no waay!

    My iphone 4s crashes too much when i download and app from store and open it its freeze or crash and restart the phone i think i am having big problem with this device i restored it to factory settings and no waay!

    I think many of us need a Defense Against the Podcasts App professor.
    Have you looked at this Apple support page?
    http://support.apple.com/kb/HT6190?viewlocale=en_US&locale=en_US

  • HT4009 I have purchased items from CityVille and they are not available in the App although my card has been charged for the purchases.

    I have purchased items from CityVille and they are not available in the App although my card has been charged for the purchases. I also have an email receipt with the purchase. Can you please tell me how to resolve this issue?

    iTunes Store: Hiding and unhiding purchases
    http://support.apple.com/kb/HT4919

  • Derivation of Commitment Item from Material and Services codes

    Hi experts,
    I need to derivate a Commitment Item from Material and Services codes, because the many material and services are related with the same financial account.
    I have seen that material codes appears in Source Fields, but service codes not.
    Can you indicate me if exist some option to derivate commitment item from Services Codes?
    Thanks a lot in advance.
    Regards,
    José Luis

    Hi,
    You can add fields to the source:
    https://scn.sap.com/thread/1969599
    Regards,
    Ming

  • My payslip gets emailed to me and opens with fire fox , i can not print it out have tried saving to doc but still opens will not print

    my payslip gets emailed to me and opens with firefox , i can not print it out have tried saving to doc, but still opens with firefox and will not print.
    The server i have to use for my pay is Explorer( i told them that this would have conflicting things on my computer, they said no i wont.( i can get it just can not print it?)

    Hi there morinallen,
    Try downloading and running the print and scan doctor located here to ensure there are no software conflicts:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • I want to take image from Photos and open in Photoshop.

    I want to take image from Photos and open in Photoshop.  In iPhoto I was able to drag it into PS icon, but now can't do that.

    File -> Export
    There is a feature called extensions in Photos that allows developers to write a hook so that photoshop and similar apps might work with Photos, but none have doe that yet,

  • I can not get itunes to install and open on my new laptop i am so frustrated i have uninstalled and reinstalled at least a dozen times in the last month

    i can not get itunes to install and open on my new laptop i am so frustrated i uninstalled and reinstalled at least a dozen times in the last month
    i got a error 7 this time but have had diff ones befpre please help

    Will iTunes open in safe mode? Hold down CTRL+SHIFT as, or immediately after, you click the icon that starts iTunes and keep holding until you see this prompt.
    Click Continue.
    Assuming iTunes has opened, enable the menu bar, if necessary, with CTRL+B. Then go to Edit > Preferences > Store and untick Show iTunes in the Cloud purchases. Press OK, close iTunes, wait until it has had a chance to fully close then reopen.
    Will iTunes open normally now?
    If not, see Troubleshooting issues with iTunes for Windows updates for genral advice.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2
    tt2
    Message was edited by: turingtest2

  • How do I delete items from Exchange and resynch to fix a bug in Apple Mail?

    How do I delete items from Exchange and resynch to fix a bug in Apple Mail?  Mail does not synch with iCal.  Many more Mail problems that may need this fix.

    Is This you want...?
    The best solution is the one you find it by yourself
    Attachments:
    BD_Image.JPG ‏9 KB

  • LoaderInfo get values from EMBED and OBject Tag (not FlashVars)

    hi
    i try get values from object and embed tags like bgColor and
    allowFullScreen
    but i cant find how i can it
    loaderInfo.parameters return only flashVars
    if some body know it please help
    thank you
    Sonettic Cinema
    Project

    <forward name="success" path="/jsp/success.jsp" redirect="true" />
    but when success.jsp page gets called its not displaying the username and usertype values on page.The request has been redirected to success.jsp(*redirect="true"*) and hence the attributes stored in request object will not be available in success.jsp. Use Session to store login user information instead.

Maybe you are looking for