ContactItem.StoreEntryId supported in Office 365?

I use Exchange Webservices Managed API to connect with Office365.
Per
Contact I retrieve the contact.ItemId.UniqueId and contact.StoreEntryId. However contact.StoreEntryId = null?
Is this supported in Office365?
My goal is to pop-up/display the contact card in Outlook2013. I try to achieve this via COM/OLE OOM (Outlook Object Model) by calling the GetItemFromId(EntryId, StoreEntryId) function to find the contactitem and then call the ContactItem.Display()
method. Thus, the GetItemFromId() function also requires the StoreEntryId.
Perhaps any of you has experience with Office 365 using outlook2013 (Outlook object model) and can tell me if this is the right approach?
- Is the Item.Id.UniqueId an unique Contact identifier in Office365, which I can refer to when synchronized with Outlook2013?
- Is EWS Contact.Id.UniqueId
the same as OOM EntryId (MAPI)?
- Is there an other or better way to achieve my goal?
Thank you!

If you want to access the contact.StoreEntryId you have to specifically request it this, else it won't be returned by default 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;
However unlike 2010 this StoreId isn't returned in a format that you can use in MAPI see
http://social.msdn.microsoft.com/Forums/exchange/en-US/ed04d0aa-f9ed-4a3a-b9b1-85884c8c9655/ews-extendedproperty-prstoreentryid-0x0ffb-is-different-than-mfcmapioutlookspy
>>- Is EWS Contact.Id.UniqueId
the same as OOM EntryId (MAPI)?
No its not the UniqueId is the EWS identifier which is separate from the MAPI EntryId, if you want the Hex EntryId you can use the ConvertId operation
http://msdn.microsoft.com/en-us/library/office/bb799665(v=exchg.150).aspx to convert the EWSId to a hexEntryId. Or you can just request the PidTagEntryId ExtendedProperty which is easier. For the StoreId I would suggest you just construct
it from AutoDiscover eg the following should yield a valid EntryId's to use in the OOM.
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;
FindItemsResults<Item> fiResults = service.FindItems(WellKnownFolderName.Contacts, ivItemView);
if (fiResults.Items.Count == 1)
if (fiResults.Items[0] is Contact) {
Contact cntContact = (Contact)fiResults.Items[0];
Byte[] EntryVal = null;
String HexEntryId = "";
String StoredHexEntryid = GetStoreId("[email protected]", service);
if(cntContact.TryGetProperty(PR_EntryId,out EntryVal)){
HexEntryId = BitConverter.ToString(EntryVal).Replace("-","");
static String GetStoreId(String emEmailAddress, ExchangeService service)
String rtReturnString = "";
AutodiscoverService adAutoDiscoverService1 = new AutodiscoverService(ExchangeVersion.Exchange2013);
adAutoDiscoverService1.Credentials = service.Credentials;
adAutoDiscoverService1.EnableScpLookup = false;
adAutoDiscoverService1.RedirectionUrlValidationCallback = adAutoDiscoCallBack;
adAutoDiscoverService1.PreAuthenticate = true;
adAutoDiscoverService1.KeepAlive = false;
GetUserSettingsResponse adResponse = adAutoDiscoverService1.GetUserSettings(emEmailAddress, (new UserSettingName[2] { UserSettingName.UserDN, UserSettingName.InternalRpcClientServer }));
if (adResponse.Settings.Count >= 2)
String UserDN = (String)adResponse.Settings[UserSettingName.UserDN];
String ServerName = (String)adResponse.Settings[UserSettingName.InternalRpcClientServer];
String flags = "00000000";
String ProviderUID = "38A1BB1005E5101AA1BB08002B2A56C2";
String versionFlag = "0000";
String DLLFileName = "454D534D44422E444C4C00000000";
String WrappedFlags = "00000000";
String WrappedProviderUID = "1B55FA20AA6611CD9BC800AA002FC45A";
String WrappedType = "0C000000";
String StoredIdStringHex = flags + ProviderUID + versionFlag + DLLFileName + WrappedFlags + WrappedProviderUID + WrappedType + StringToHex(ServerName) + "00" + StringToHex(UserDN) + "00";
rtReturnString = StoredIdStringHex;
return rtReturnString;
static string StringToHex(string asciiString)
string hex = "";
foreach (char c in asciiString)
int tmp = c;
hex += String.Format("{0:x2}", (uint)System.Convert.ToUInt32(tmp.ToString()));
return hex;

Similar Messages

  • Add-in support on Office 365 click-to-run installed and Office 365 App-V installed

    Hi,
    We have to make a decision on deploying Office 365 via on premise click-to-run, with the Office Deployment tool, or via App-V. But the way add-ins are supported on Office 365 / Office 2013 on App-V 5.0 SP2 is not clear to me.
    Some Technet sites mention that for add-in support on an App-V based office, the add-ins should be sequenced and put together in a connection group with the Office App-V package (created by the Office Deployment tool)
    On
    http://blogs.technet.com/b/office_resource_kit/archive/2013/12/02/announcing-app-v-5-0-sp2-support-for-office-2013-volume-licensing-editions.aspx however, I read in the table “Full-featured Office with integration with other applications,
    add-ins, and Windows”
    When testing with third party applications and Visual Studio installed in a classical installer way, the add-ins are added to the App-V installed Office, but we are sometimes experiencing error messages in word / excel with the add-ins
    enabled.  
    Should add-ins be sequenced to be used on an App-V based Office? Or in other words, is there a difference in add-in support between the click-to-run version and the App-V version of Office for non-virtualized add-ins?

    Hi,
    There is a new feature for Office 365 Pro Plus, it allow administrators the ability to exclude App element. We need to use Office 2013 Click-to-Run (Build 15.0.4615.1001) and logon as administrator. 
    http://blogs.technet.com/b/odsupport/archive/2014/05/14/new-application-selection-feature-offered-with-the-may-2014-update-of-office-2013-click-to-run.aspx
    Then, we'd better follow this link and repeat the steps one by one:
    http://lyncme.co.uk/office365/office365-proplus-click-to-run-lets-stop-onedrive-for-business-from-being-installed/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does
    not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support

  • Javascript Support in Office 365 APIs

    Looking at the Office 365 API Preview, I came across this sentence in the Discovery Service section.
    "Currently, the Discovery Service APIs are available in a .NET C# managed portable library that can be used by Native, Windows Store, and Windows Phone apps."
    If the Office 365 APIs will only be available when fully released as C# libraries that is a huge problem, especially if you want Windows Store App Developers to write apps that utilize data from it, even OData. There is a very large section of that dev community
    that write in JavaScript and you will essentially be ignoring and/or cutting off that whole segment of that community if you do. One of the great things about the Windows 8 App dev platform is that a developer can use (almost) any language that he/she is comfortable
    with, that HTML/Javascript and C#/XAML live, breath and thrive together. Unfortunately, it seems that the SharePoint product teams only are able to write in C#.
    It has been quite a struggle to write apps that utilize the SharePoint 2013 product line (on-prem, online, Project Online, etc) as a HTML/Javsacript Windows Store App developer, especially around authentication. No samples exist. The C# samples that do exist
    utilize coding methods that are very specific to how one would developer on the SharePoint platform before the new "app" dev model came about, which aren't necessarily the correct or appropriate ways that a Windows 8 developer would/should do things.
    It's like they didn't even bother to learn about the axioms and dev principals for Windows 8 Store Apps or worse didn't talk to their colleagues on the Windows Dev team.
    I write in both HTML/JavaScript and C#/XAML, which is not a common practice. However, when I am writing Windows 8 Store apps, HTML/JavaScript is the language that I prefer. It is just easier to get some of the more advance design things done in that language
    combination then in C#/XAML I have found. I have been holding off releasing some of my apps because I want to support O365/SharePoint Online/Project Online with them. If these new libraries are only going to be C#, then my apps just won't support O365. I would
    hope though that going forward that more support would be given to this large section of your customer community.
    Regards,
    Christine Flora

    Not sure if you've done a lot of work trying to get OData out of Office 365 / SharePoint Online or Project Online or done any Windows 8 development, but you must authenticate before you can even get TO the OData endpoints. So yes, the REST Endpoints are
    accessible by using an httpClient call from within Javascript, if in fact you can authenticate and authorize first.
    Currently this is a big pain in the backside, even if using C#, but from JavaScript it is almost impossible. Even now some of the current/popular methods for doing so can open big security holes on a Win8 machine (ie: running a claims service on your Win8
    machine locally just to authenticate to name just one).  I was hoping / am hoping that the new APIs will help with that, but I am not at all encouraged by what I am seeing and hearing so far especially since it looks like from the quote I provided above
    that they will only be available if you are using C#. As I pointed out, a large part of the Win8 App Dev community using JavaScript.
    I want to put it out there that I truly hope that the SharePoint product teams take this into consideration as they work on these new APIs and other ways to extend the SharePoint App family.
    Christine

  • Questions About Office 365 Capabilities

    I am exploring the possibility of putting our organization's Office on, "the cloud" using Office 365 Enterprise E2. I have some questions that are important. Any help will be appreciate.
    1.  I have developed extensive VBA "code behind" on Word files and Excel workbooks that do complex operations.  For instance, I open our Outlook public folder shared contacts to do searches and populate forms and Excel cells. 
    I use NPOI calls to create downloadable Excel workbooks, etc.  I use calls to SQL to access and query databases and return data.  Is the VBA coding supported with Office 365?  If so, what restrictions might there be over my current situation,
    where Exchange and Office are hosted on our servers?
    2.  In general, what restrictions will I encounter with Exchange and Office being hosted by Microsoft, versus these tools being hosted on our servers?
    Again, crucial questions and I appreciate any help.  Thanks.
    Doug Pruiett Good News Jail & Prison Ministry Richmond, Virginia www.goodnewsjail.org

    Hi,
    Please try to use your account which logon in the Technet to sign in the Office 365 forum.
    http://community.office365.com/en-us/forums/default.aspx
    And your issues were more related to coding/programming, you'd better post them to MSND forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?category=officedev&filter=alltypes&sort=lastpostdesc
    Regards,
    George Zhao
    TechNet Community Support

  • Sharepoint2013 office 365 and SSRS

    We have Sharepoint 2013 Enterprise License. We have an on-premise Sharepoint system with SSRS. We are planning to migrate to Sharepoint office 365 portal. My question is: Is SSRS supported in Office 365 Sharepoint 2013 portal?

    SharePoint Online does not have SSRS. Instead, it has PowerBI, which is a separate license, with different capabilities.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Activate Office 365 windows desktop application Licenses throug GPO !!!

    Hi all ,
    we have  Office 365 A3 plan for 300 user cal and unlimited student license in our university , all computers in the labs are domain joined , computers not assign to specific persons .. the computers may
    be used by many people
    now, after I deploy office suite via WDS, how can I activate office desktop applications through GPO ?
    Thanks

    Hi Ary,
    >>how can I activate office desktop applications through GPO ?
    As far as I know, group policy can’t help us activate applications.
    Regarding how to activate Office 365, in order to get more professional help, we can ask for advice in the Microsoft Office 365 Community.
    Support Community: Office 365 for business
    http://community.office365.com/en-us/default.aspx
    Office 365 Forums
    http://community.office365.com/en-us/f/default.aspx
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

  • Office 365 - Changing Domain using Powershell

    Hi,
    I have about a hundred users on a domain ([email protected]) and I need to change to another domain ([email protected]) using Powershell.
    May I know what commands are needed to accomplish this? I need to change the userPrincipalName, SIP and Primary SMTP to the new domain.
    I have all the users in a CSV file.
    Thanks!!

    Hi Kindovic,
    To bulk add user information from CSV file, please check the script below:
    Bulk import the user information from CSV file
    How to create users in bulk using csv file import
    For the issue of office 365, I also recommend you to post this in Office 365 forum for more effective support:
    Manage Office 365
    Best Regards,
    Anna

  • Setup Office 365 in Nokia X using Outlook app

    Why am I not able to do it from the Outlook app? When I enter my login data it says "Account does not exist".

    I am ready to inform you that office mobile has got support for office 365, which even works with custom domain.
    hey listen, apart from this, I want to tell you, Nokia x sw v1.2 has got "live wallpaper picker".
    A past Nokia X user, now a X user.

  • Will this API eventually support Office 365 and other hosted Lync Services?

    I just noticed in the intro forum post that this SDK only supports on-prem Skype installations. I was hoping to use the SDK against an Office 365 install. Is it in the roadmap for this SDK to support hosted Skype? Are there any estimate timeframes you can
    share with us?
    Many thanks,
    James.

    I'm having this exact same issue.
    Have you seen this thread? https://discussions.apple.com/thread/5252673?start=45&tstart=0
    I'm on Exchange 2013, which I manage, and Mavericks.  I also noticed you can see a "Linked Contact" on OWA 2013.
    This is just more of the extremely poor Apple software engineering we have seen over the last few years...
    Also: http://community.office365.com/en-us/forums/153/t/187666.aspx
    Message was edited by: ibrennan

  • Office 365 support for KMS

    Hi,
    Does Office 365 support KMS and/or will there be added support for this in the future? I know this is not
    supported if your read the TechNet article; http://technet.microsoft.com/en-us/library/ee624357.aspx.
    However I want to ask if anyone knows otherwise.
    Marius A. Skovli | MCP/MCTS/MCITP | Twitter: @mariusskovli

    Hi,
    Office 365 don’t support Volume Activation (KMS/MAK).
    http://technet.microsoft.com/en-us/library/office-365-enterprise-value-service-description.aspx#bkmk_VolumeActivation
    Note:
    Volume activation for Office 365 Enterprise E3, Office 365 Enterprise E4, and Office 365 ProPlus are limited to installations on Microsoft Windows Server 2008 R2 and newer with the RDS role enabled or Windows To Go installations. In either
    case, users accessing these installations need to be licensed users of Office 365 Enterprise E3, Office 365 Enterprise E4, or Office 365 ProPlus.
    As the admin for your organization, you can
    set up Office 365 for everyone in your organization. This is an example of Office 365 Small Business admin.
    http://office.microsoft.com/en-001/office365-suite-help/set-up-your-organization-on-office-365-small-business-HA102818317.aspx

  • Lack of Office 365 (local instal) COM Automation support - need a definitive list of the versions and their support for automation.

    I develop an application that does some PowerPoint automation using embedded interop types (C# App - with VB assembly that does the office automation part)
    I've started to get reports that the PowerPoint automation is failing on Office 365.
    Here is a sample of a typical customer complaint:
    not exporting to powerpoint...
    We recently migrated from Office2007 to O365. That would be definitely the reason.
    But how can we solve this?
    I found the following reply to a forum question:
    https://social.msdn.microsoft.com/Forums/office/en-US/3c95eea4-641f-4bf0-a166-ecf33177854b/does-desktop-versions-of-applications-in-office-365-packages-support-comautomation?forum=exceldev
    But it only states that one version doesn't - and then one version does - doesn't reference a list of all support versions.
    Also - later - in that thread - it is shown that the accepted answer is actually incorrect.
    A sample of the type of code used to interact is shown here....
        Public Function PositionSlideTitle(ByVal slide As PowerPoint.Slide, ByVal height As Single, ByVal marginX As Single, ByVal marginY As Single) As PowerPoint.Shape
            Dim shapes As PowerPoint.Shapes
            Dim shape As PowerPoint.Shape
            ' get the shapes on the slide
            shapes = slide.Shapes
            ' get the shape that holds the title
            ' if the shapes collection has a title, then this title shape is always in index 1
            If shapes.HasTitle = Office.MsoTriState.msoTrue Then
                ' the title shape can also be accessed by the special property Title
                shape = shapes.Title
            Else
                ' If there was no title - then add one
                shape = shapes.AddTitle()
            End If
            ' position the shape at 0,0 (seems not to want to go there)
            shape.Left = marginX
            shape.Top = marginY
            ' stretch image to fit slide
            shape.Width = slide.Master.Width - (marginX * 2)
            shape.Height = height
            Return shape
        End Function
    The project references Microsoft.Office.Interop.PowerPoint, version 11.0.0.0 with it's "Embed Interop Types" set to true.
    This has worked for 10+ years, with all versions of office from Office 2003.  We still need the application to support Office 2003 - and it still does perfectly, so referencing newer PIA's isn't an option.
    Please help.

    Great to know that all versions of Office Support Com Automation.
    Because the end-users that have made the complaint - are using Office 365 - it wouldn't be the Click2Run edition as you've mentioned - but it's good to know that information, as I wasn't aware there was a possible issue with that - thanks.
    I'll just assume then that the end user that sent the following issue is running them with different permission level:
    not exporting to powerpoint...
    We recently migrated from Office2007 to O365. That would be definitely the reason.
    But how can we solve this?
    Although - one more thought - I read somewhere that O365 users can install office via the O365 portal - I wonder whether this is the same as Click2Run install - and hence causing the same out-of-process application error you have referred to?
    Kind Regards
    UPDATE:
    Further reading/searching on click-to-run and O365 found the following:
    I can't paste links in this forum, but:
    technet microsoft com "en-us/library/jj219427.aspx"
    Eugene - you may be onto something with the click-to-run issue - that may be the cause of the error in O365 installations - At least now I have a scenario to test against (user info is always difficult to determine exactly how to replicate issues) - Cheers.

  • Office 365 support with VB6 based application for example Mail Merge

    Hi Development team,
    Could i know how to use office 365 in our project step by step ? is it free available as trial version which work successfully
    As our project is currently using Microsoft Office 2003/2007. for we example we run Mail Merge module and it opened in MS word Office 2007 by default as it is installed in our local Machine.
    Currently i don't have office 365 licence software, does it require?
    My point of contact is one of client is asking for why not we are using office 365 which is on cloud version.
    Thanks 
    Anuj kumar
    India 
    91+9582890489

    Hi,
    Welcome to MSDN.
    I am afraid that issues related to VB6 are not supported in these forums, you could check that thread :
    Where to post your VB 6 questions
    In addition, you could post issues related to Office 365 which are not related to VB6
    in http://answers.microsoft.com/en-us/office?auth=1 to get supports.
    Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • OEM Office Home & Student 2013 turned into Office 365 while being helped by tech support

    After a recovery necessitated by being unable to open any Office progam I got with tech support.  I didn't have the key for the preloaded 2013 H&S version.  The tech did some magic by remote access and got Office going.  It looked a bit different and I asked if this was the installed version.  He said sure, it's all fine.  As it turns out, it is the full version of Office 365.
    Now I'm getting nagged to pay up before  the beginning of next month.  I wanted my OEM Office back, not the subscription version.  How do I get it back?  Didn't get a disk or key with the machine.

    Hi @TPG21 
    Welcome to the HP Forums!
    It is a great  place to find answers and information!
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide Learn How to Post and More
    I understand that your notebook came with Office Home and Student 2013.  You were experiencing a difficulty with this and contacted HP support.  You were unaware at the time but they installed Office 360 and now you are getting a prompt to pay for it.
    I do not believe that recovery manager would reinstall the Office Home and Student so I suggest contacting HP support again. Provide in detail the event that occurred and they can pull up the previous case number and see what was done and provide any additional details required.
    Please call our technical support at 800 474 6836. If you live outside the US/Canada Region, please click the link below to get a support number for your region.
    World Wide Phone Support
    Regards
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • HT5457 Can iPad mini be updated to snow leopard v10.6 to support office 365?

    I am trying to put Word on my iPad mini for college.

    No, You can't install Office 365 on an iPad nor can unstall Snow Leopard 10.6 either.
    You need a Mac for both of them.
    Allan

  • Contact Item created in Office 365 website opened in Outlook 2013

    Hello,
    Is it possible to open a "Contact Card" created via web in Office 365 OWA, on your locally installed Outlook 2013 using its unique "Contact.EntryId"?
    I have Delphi application which connects to outlook via COM/OLE. My goal is to retreive the ContactItem using OutlookNamespace.GetItemFromId(EntryId, StoreEntryId) and display in outlook 2013. However, retrieving the item results in
    an error. I noticed that Contact.StoreEntryId (retrieved via Exchange Webservices Managed API) seems to null.
    Is there anyone who
    has any experience with this? 
    Erwin

    Is it possible to open a "Contact Card" created via web in Office 365 OWA, on your locally installed Outlook 2013 using its unique "Contact.EntryId"?
    Basically my question is:
    1. Is there an unique Contact identifier in Office365, which I can refer to when synchronized with Outlook2013?
    2. Can I use this identifier to open/display the contact in Outlook2013
    I have Delphi application which connects to outlook via COM/OLE. My goal is to retreive the ContactItem using OutlookNamespace.GetItemFromId(EntryId, StoreEntryId) and display in outlook 2013. However, retrieving the item results in
    an error. I noticed that Contact.StoreEntryId (retrieved via Exchange Webservices Managed API) returns null.
    Is there anyone who
    has any experience with this? 
    Erwin

Maybe you are looking for