none
Create/Modify Quicksteps using EWS? RRS feed

  • Question

  • Hello,

    Is there a way to add or modify quicksteps for other users (global) using EWS and Powershell?

    Or somebody know a other way to share quicksteps (global)?

    (Server: Exchange_2010_SP1)

     

    Thanks,

     

    Marcel Adam

    Wednesday, July 20, 2011 3:05 PM

All replies

  • Hi,

    the QuickTips are stores in a hidden folder under the MsgFolderRoot. Each action is stored in an item in the folder associates items store of that folder.

    You can use this code to get the configuration data of the first custom action:

    private static readonly ExtendedPropertyDefinition PidTagRoamingXmlStream =
       new ExtendedPropertyDefinition(0x7C08, MapiPropertyType.Binary);

    var folder = service.FindFolders(WellKnownFolderName.MsgFolderRoot,
                                    new SearchFilter.IsEqualTo(FolderSchema.DisplayName, "Quick Step Settings"),
                                    new FolderView(10)).First();
    var itemId = folder.FindItems(new ItemView(10) {PropertySet = PropertySet.IdOnly, Traversal = ItemTraversal.Associated}).First().Id;
    var item = Item.Bind(service, itemId,
                        new PropertySet(BasePropertySet.FirstClassProperties, PidTagRoamingXmlStream));
    byte[] result;
    if (item.TryGetProperty(PidTagRoamingXmlStream, out result))
    {
       var action = Encoding.UTF8.GetString(result);
    }

    Note: Only custom actions are stored here - so you need to create at least one.

    I have not tried to modify them yet.

    Kind regards,
    Henning
      "Marceliniho" wrote in message news:12422b69-10d9-4391-9265-3601df3d31ba@communitybridge.codeplex.com...

    Hello,

    Is there a way to add or modify quicksteps for other users (global) using EWS and Powershell?

    Or somebody know a other way to share quicksteps (global)?

    (Server: Exchange_2010_SP1)

    Thanks,

    Marcel Adam

    Wednesday, July 20, 2011 5:25 PM