Folder Extended Properties (EWS+Outlook)

What Im trying to achive is to be able to create a Folder with Extended Properties using EWS and then be able to read these properties from inside Outlook.
Ive verified that it works to add & retrieve extended properties on Folders using EWS, i.e.
        var f = new Folder(_svc);
f.DisplayName = "Testing";
        f.SetExtendedProperty(EPD.ItqAction, 1);
        f.Save(WellKnownFolderName.MsgFolderRoot);
then loading it as following,
        PropertySet propset = new PropertySet(PropertySet.IdOnly);
        propset.Add(EPD.ItqAction);
        f.Load(propset);
or even using SearchFilder.IsEqual()
but these Properties does not appear in OutlookSpy nor MFCAPI, and can't seem to be accessable from Outlook VSTO.
I've tried 
myFolder.PropertyAccessor.GetProperty(EPD.ItAction.ToMapiString());
ToMapiString creates a "http://schemas.microsoft.com/mapi/{GUID}/attr-name" string
But this results in a COMException. 
Ive heard that named Properties are not supported by Outlook, what is the alternative type definition? And that one should create a Hidden Item in the folder for properties. But haven't been able to find any details on how to create a hidden item (only Hidden
folders w/ attribute 0x10f4).

>user defined properties are vanished if they are not defined in the delivery store".
What exactly do you mean? How is that possible?
>I'd recommend asking EWS specific questions on the Exchange dev forums instead
Eugene, I am answering this question in the Outlook dev forum. It is perfectly fine here. If you do not know how to answer it, you do not have to reply. There is no requirement that you answer each and every question asked in the forum.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Version 5.5 is now available!

Similar Messages

  • Is it possible to delete extended properties without knowing the id?

    Hello,
    Can you delete any custom extended properties without knowing their ID?
    I took over managing a feature that used EWS to send emails to customers.The current code creates a new GUID, and thus new Extended Property, every time an email is sent.
    // Create a custom extended property and add it to the message.
    var myExtendedPropertyDefinition = new ExtendedPropertyDefinition(Guid.NewGuid(), "MyGuidId", MapiPropertyType.String);
    mail.SetExtendedProperty(myExtendedPropertyDefinition, "MyGuidId");
    // Send and save a copy
    mail.SendAndSaveCopy();
    Is there a way to delete any of the custom extended propeties without knowing the IDs?
    Thank you

    No you can't do that in EWS you need to know the details of the property you want to Read/Write or delete. EWS has no method of enumerating all extended properties either you would need to use MAPI to do this.
    >>The current code creates a new GUID, and thus new Extended Property, every time an email is sent.
     I'd question the design of this what where they trying to acheive ? Why not have ths same property with a different Value ? else using an X-header would be better idea at least then it will persist ouside of your Exchange infrastructure and even
    inside would be more discoverable.
    Cheers
    Glen

  • Data warehouse ETL - dropping all FK but what about extended properties? Do they need to be re-added

    So Im setting up a SSIS package to refill the DB, drop/re-add the keys etc and I notice that there are extended properties added in the definition of the keys added to the fact table.  Do these needed to be added back EXACTLY as they are defined (when
    viewing them in management studio via right-click > script key) ?
    Im thinking they do as they mention the DSV, so Im guessing that not adding them back might mess up the DSV?

    Lightning is a problem for you because it hooks into Thunderbird at a low level and you need a version compiled for the platform Thunderbird is running on. So you can't do the preferred solution, which is to put your whole profile in a shared folder and have both instances of Thunderbird reference the same profile. (Ditto for Enigmail). Lightning may become an integral part of Thunderbird in an upcoming release, at which point this limitation due to Lightning should disappear.
    And if you can't use a shared profile, you can't set your Lightning, or your Address Book, to share a common set of files. Put another way, the linkage from Thunderbird to its address book files and calendar data is hard-coded, and not exposed where we can adjust it. :-(
    The halfway house is to place your mail stores in a shared place, and use the Local Directory setting in each account's settings to connect to it. They don't need to be in the profile; what's more important in your case is that they are in a folder accessible to both operating systems.
    Look in your profile; everything under Mail and ImapMail needs to be moved out to a shared folder. Note the entries in Thunderbird under Local Directory before you do this, and reconstruct those pathnames in Thunderbird, but adjusted to suit their new locations.
    (You can see here that you need to make many adjustments, one per account, in each instance of Thunderbird, so it's a high-maintenance solution and this is why we don't recommend it when the alternative, moving the whole profile, is possible.)
    I share address books and calendars between Thunderbirds on various computers (and my phone and tablet) by syncing to something in the cloud; Google Contacts and Google Calendar are my choices, using gContactSync and CalDav.
    Having made the break myself some years ago, I'd recommend you break away from Windows. ;-)

  • Acrobat 9 / Outlook 2007 - Convert  Mail Folder to PDF Crashes Outlook

    Procedure:
    Opened Outlook 2007, selected email folder, right clicked email folder, selected from menu: Convert "folder" to Adobe PDF, selected save
    Problem:
    After many successful such folder conversions, one email folder in particular caused Outlook 2007 to crash when half way through conversion
    Solution:
    Finally, upon about the 7th attempt, I noticed Outlook crashed when attempting to convert one particular email file (within the folder)
    The name of the offending email file was visible during the conversion process
    I reopened Outlook, examined the offending email and discovered it contained Japanese characters in the attachments
    I then deleted the offending email and recommenced the procedure
    All ran smoothly as per normal, Problem Solved!
    I hope this helps somebody out there

    I searched everywhere on the web for a solution and came up with nothing - so when I finally worked it out (simple in hindsight) I just had to make the post (my very 1st!).

  • Post income crashes when "Waiting to update this Folder" appears in the outlook mailbox.

    Post income crashes when "waiting to update this folder" appears in the outlook mailbox (outlook 2007) We have already done the basic troubleshooting of remove the cached exchange mode, this does not resolve the problem. Also we have tried following
    on the MS article of basic troubleshooting
    http://support.microsoft.com/kb/842284 and KB2000071
    Many of the users now are facing this issue. OWA is working fine also mails on Mobile devices are working fine except for outlook client 2007.
    Can any one help.
    Regards,
    Pralhad
    Pralhad

    Hi,
    The Event Viewer can be a great help to determine the root cause of an issue or to find new leads in case regular troubleshooting of Outlook didn’t bring any results.
    Open the Event Viewer:
    Press Win + R and type “eventvwr” in the blank box, then press Enter.
    You may find the Error Entries for Outlook, also Event ID, text description after the crash happens, post the information in the forum and maybe we can find something useful to find the root cause.
    You may know more about Event logs from this article below:
    http://windows.microsoft.com/en-hk/windows/what-information-event-logs-event-viewer#1TC=windows-7
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Unable to programmatically get content of extended properties in custom control

    Hi all
    I am facing some problems with a custom control which I applied to the Business Service class form. The goal of this control is to automatically populate the DisplayName property of a Business Service based on two properties which are part of a Business
    Service class extension. The control is working fine and gets applied successfully to the Business Service forms.
    Also populating DisplayName as well as other OOB Business Service properties works fine, but when it comes to extended properties, it seems as if the instance I am working with in the custom control is not aware of those... However when getting the class
    of the given instance and searching propertyCollection, both properties are visible.
    It seems so me as if the instance I am working with is just no aware of properties coming from a class extension. I never ran into that when building my own custom forms.
    Any thoughts about this?
    private void ServicePriceListView_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
    //Check if we get an IDataItem
    if (this.DataContext is IDataItem)
    //Get the IDataItem
    inst = (IDataItem)this.DataContext;
    IDataItem dataItemClass = inst["$Class$"] as IDataItem;
    Dictionary<string, IDataItem> dataItemClassProperties = dataItemClass["PropertyCollection"] as Dictionary<string, IDataItem>;
    // dataItemClassProperties contains both extended properties
    string displayName = inst["DisplayName"].ToString(); // Works fine
    string serviceID = inst["scsmlabid"].ToString(); // Does not find property scsmlabid
    string serviceDescription = inst["scsmlabdescription"].ToString(); // Does not find property scsmlabdescription
    //Set DisplayName
    inst["DisplayName"] = inst["mchserviceid"] + " - " + inst["mchdescription"];
    Blog: http://scsmlab.com  Twitter:
    @scsmlab

    The "FormView" object is, for all intents and purposes, your parent form object. You can use FormUtilities.GetFormView() and send pretty much any control from your form as a parameter to that method. It'll send back the top-level FormView object.
    (More precisely, the FormView's "Form" property is your parent form object..ie: FormView MyMainForm = FormUtilities.GetFormView(this); MyMainForm.Form;)
    With that object you can subscribe to all of the typical FrameworkElement events. If you want to subscribe to the SCSM Console API events, use the FormEvents class and add a handler to MyMainForm.Form using .AddHandler() and .RemoveHandler(). 
    Here's a little primer from Microsoft on the Console form events:
    https://technet.microsoft.com/en-us/library/ff461071.aspx

  • Service Objects Extended Properties

    Hi,
    I'm looking for a list of registered keywords and properties
    for the Service Objects extended properties.
    I found servicetobind and forte_generated, but I'm looking
    for the exhaustive set, so that not to interfere with them.
    Thanks for any input,
    j-paul gabrielli
    sema dts

    Hi Denis,
    it worked now. i had didn't stop SIA completely.
    Thanks!!!
    -Pavana

  • DM 3.1.1 with SQL Server 2008 . Extended Properties not imported .

    Hi
    I am using Data Modeler 3.1.1 with SQL Server 2008.
    I have a database where I have Extended Properties (MS_Description) for the tables and columns.
    I use the Import Data Dictionary option (database type SQL 2005) , and the extended properties are not being imported to the model.
    Is there anything else that I should do to have the descriptions imported?
    Regards,
    Jorge

    Hi Fernando
    That is what I need to do.
    Create a Model from an existing SQL Server database with the Import data Dictionary option , be able to modify tables structures, extended properties in the model, and then sync those changes with the database.
    So far I can't import the extended properties with DM 3.1.1. If you find a way , please let me know.
    Thanks,
    Jorge

  • List extended properties on all databases

    I need a script that lists/returns all extended properties in all the databases on a SQL Server 2008 Instance.
    For example the script below returns the extended property for a single database.
    SELECT objtype, objname, name, value
    FROM fn_listextendedproperty(default, default, default, default, default, default, default);
    However I need a script that returns the extended properties for all databases. Thanks.

    Hi,
    Try PowerShell like below to get the information:
    [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') | out-null
    $s = New-Object ('Microsoft.SqlServer.Management.Smo.Server') "computer\instance"
    $dbs = $s.Databases
    foreach ($db in $dbs)
    $ds=$db.ExecuteWithResults("SELECT objtype, objname, name, value FROM fn_listextendedproperty(default, default, default, default, default, default, default)")
    $table = $ds.Tables[0];
    foreach ($row in $table)
    Write-Host $row.Item("objtype") $row.Item("objname")$row.Item("name")$row.Item("value");
    Please check below articles for more information:
    http://www.mssqltips.com/sqlservertip/1759/retrieve-a-list-of-sql-server-databases-and-their-properties-using-powershell/
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/ff5ae2d3-0923-4240-a532-2d879d9528a6/using-powershell-to-get-data-from-sql-database?forum=winserverpowershell
    Hope it helps.
    Tracy Cai
    TechNet Community Support

  • EWS 2010 Managed API Cannot delete email if scheduled via extended properties

    I  have code that schedules an email as below:
    Scheduling Code:
     _ExchangeService.Credentials = new WebCredentials(_UserName, _Encrypt.getEncryptedValue(),_Domain);
    _ExchangeService.AutodiscoverUrl("[email protected]");
                this.ScheduleRequest = bAddScheduling;
      try
                        EmailMessage message = new EmailMessage(_ExchangeService);
        //set message properties
       //add scheduling     
    message.SetExtendedProperty(PR_DEFERRED_SEND_TIME, ut);
    message.SetExtendedProperty(PR_DEFERRED_DELIVERY_TIME, ut);
    if(bAddScheduling)
      message.Save(WellKnownFolderName.Outbox);
    message.SendAndSaveCopy();
    Delete Code:
        ItemId id = new ItemId(ID);
                EmailMessage current =  EmailMessage.Bind(_ExchangeService, id);
                try
                    current.Delete(DeleteMode.HardDelete);
                catch (Exception e)
                    throw e;
                    //string ex = e.ToString();
                    //_COMPlusExceptionCode = -532462766
                    //[Microsoft.Exchange.WebServices.Data.ServiceResponseException] = {"Object cannot be deleted."}
    Scheduling seems to be working just fine.  My problem is that I want to enable the deletion of a scheduled email and when I try to delete I receive "Microsoft.Exchange.WebServices.Data.ServiceResponseException: Object cannot be deleted."  If I
    just save the email and do not send it I can delete it programatically.  If I make a call to Send or SendAndSaveCopy after saving the message I always receive the object cannot be deleted message.  I can log into the mailbox as the service account
    and delete it just fine.  I am stumped please help.  

    I am having this exact issue.  Does anyone from the exchange team at MSFT have any guidance on this matter?  This thread has remained unanswered for 3 months.
    Thanks in advance.

  • Create folder - setting properties in default property screen

    Hello
    You can create a folder with following url: 'http://com.sap.cm/.?uicommand=new_folder'
    Setting Collection renderer to html renderer.
    This works fine.
    Now, I've got the requirement to modify the standard. I have an own property group which hangs in the default properties structure.
    I need to get a folder upload (with 2 additional input fields) and only my property group (already displayed, so I need to get rid of the link and show the properties).
    To start, I found the [One-Step-Screenflow tutorial|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/netweaver/netweaver-developers-guide-2004s/NetWeaverDevelopersGuide2004s_Documents/KM_articles_new/howto/km/flexui/Implementing%20Flexible%20UI%20One-Step-Screenflow.html].
    But the requirement says we need, just as the standard, the default properties window of our own property group (just this tab) WITH the javascript checks on the mandatory fields.
    Do you have any clue how to achieve this? I looked already in the standard SAP code, but can't figure out how to achieve this one..
    Thanks for hints and tips.. or the solution of course
    Christof

    Hey Robert
    I opened 2 threads because I didn't know which title would attract attention + which solutions are possible. I propose we discuss this matter further in my other thread ( https://forums.sdn.sap.com/thread.jspa?threadID=1207836&tstart=0 ) because it's useless answering plus minus 2 times the same questions But I awarded you the points!
    So I close this one now..
    Christof

  • Setting up the Network Folder through the EWS.

    Hi,
    I'm having trouble setting up the network folder feature in the EWS.  I created a destination folder on my desktop in another folder called (desktopfiles).   In the EWS -  in the display name field - I called the folder (HP Files).  
    In the network path field I put (\\myusername\desktopfiles)  .  I test and get Network connection failed.  
    note:  Under network user name I put in my wireless network and password info.
    Am I filling these forms out correctly?

    FYI.  I keep getting network connection failed after every test.  

  • Draft Folder in IMAP with Outlook 2010

    Hi.
    I have three Outlook accounts (work related) that I recently converted to IMAP from POP.  Everything seems to be working fine with the exception that I can't find a way of having the "Drafts" folder appear in the Folders List.  There
    doesn't seem to be a way of finding a draft either. 
    Today I composed quite a lengthy email and when I clicked on "send" Outlook stalled and gave the warning that it was "not responding" - this is very unusual.  After a few seconds the email just disappeared and now I cannot recover
    it.  It has been my experience in a POP account environment that if a composed email fails to "send" for any reason, it automatically saves a copy in the "drafts" folder - this doesn't seem to be the case in IMAP.
    Any suggestions as to how I can get access to a "Drafts" folder and have it displayed in a MAPI environment?
    Thanks

    Hi,
    First please go to View tab -> Reset View.
    Then run Scanpst.exe to repair the Outlook Data File:
    http://support.microsoft.com/kb/272227
    Start Outlook with the switch /resetfolders:
    Press Win + R and type “outlook.exe /resetfolders” in the blank box, then press Enter.
    If the issue persists, please create a new profile to test the result:
    http://support.microsoft.com/kb/829918/en-us
    Regards,
    Melon Chen
    TechNet Community Support

  • Duplicate emails in Junk E-Mail folder when running multiple Outlook clients

    Has anyone experienced problems when running multiple Outlook clients - and a junk e-mail is received?
    We are seeing that when a user is running 3 Outlook clients (2007/2010) - and they received a junk email - Outlook seems to take that email and movie to the folder. However, with 3 clients, there end up being 3 copies of the email.
    Mail clients are Outlook 2007/2010 running in native Exchange mode (no IMAP, POP, etc). Server is Exchange 2010 SP1, RU2.
    Antivirus is McAfee VirusScan Enterprise 8.7.0i  - but we believe that the problem occurs even with it disabled.

    hi, we also faced the same issue.
    we had a common mailbox that is accessed from different workstations, and the outlook profile is set to cached mode. when a junk mail is received, it will create duplicates according to the number of outlook clients, as what jbuschmann mentioned. Is this
    a known issue in outlook 2010? Understand there's a fix for outlook 2003 for a similar issue, is there a similar fix for outlook 2010? thanks!
    http://support.microsoft.com/kb/832358

  • Public folder migration difference what Outlook client see

    I have successfully migrated  public fodders from Exchange 2007 to Exchange 2013. Problem that I`m seeing is  what Outlook client see.
    I have two types of clients :
    Windows XP + Outlook 2007
    Windows 7 + Outlook 2013
    Outlook 2013 client see  Public fodders as expected.
    Outlook 2007 client, sees  one level lower including ipm_subtree.
    Is these normal ?

    Hi,
    Please try to use OWA to check whether you can expand the subtree of Public Folder.
    If OWA works, how about using Outlook 2007 with Online Mode?
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Mavis Huang
    TechNet Community Support

Maybe you are looking for

  • Service Entry Sheet Deletion

    Hello Friends, My client is facing a problem while creating a service entry sheet for a PO. In the PO history it is showing a service entry sheet(SES) is created for a line item. But that SES has been revoked and deleted also. But the concern is alth

  • How to read in date/time with ascii import

    I have an ascii data file with a time column in the following format ddd hh:nn:ss the seconds are like 11.1234567, so it would look like 234 12:23:11.1234567 I have tried different format options to read this in with no luck. The data I read in I am

  • Report showing strange characters

    Hello, If i am entering inverted single or double quotes through the User interface, they are visible in the application but when i view this in Oracle report, it is not able to recognize these characters and showing them as inverted question mark si

  • IPhone 5 suddenly synced with my old iPhone

    Okay, someone help me please.  I bought an iPhone 5 a month ago, all is fine but I did notice it took the same "name" as my old one.  I gave my old one to my daughter who put her sim in and all is well there too. Just now, out of the blue, I noticed

  • Retrieving Batch Numbers

    Hi Is it possible to retrieve the valid BatchNumbers for an ItemCode via DI - Business Object somehow? TIA Philipp