How to assign Tasks to other users using Exchange Web Service. RRS feed

  • Question

  • How to assign Tasks to other users using Exchange Web Service.
    Any workaround also would help
    • Edited by AparnaVJ Tuesday, April 30, 2013 5:02 AM
    • Moved by Bob Shen Wednesday, May 1, 2013 6:49 AM
    Tuesday, April 30, 2013 4:41 AM

All replies

  • Hi Aparna_SQL,

    I am moving your question to Exchange Server forum for better responses. 

    Bob Shen
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, May 1, 2013 6:48 AM
  • Assigning tasks like you can do in Outlook is not supported in any version of EWS on Exchange and its not a feature that has ever been supported in OWA. The only workaround is to use MAPI via the OOM or Redemption. One thing you can do in EWS if you have rights to the user you want to delegate the task to is just create a Task in their mailbox directly.


    Thursday, May 2, 2013 6:40 AM
  • Hi Glen,

    Is it possible to assign task items using EWS by setting the MAPI Property on ExtendedPropertyType instance and adding that to an UpdateItemType.

    Thanks a lot.


    Thursday, February 5, 2015 8:59 PM
  • There is no support for doing this in EWS (still) theoretically if you can set the right the extended property combination that should work but you still need to send the assignment emails to the assignee and there is also nothing to do that or process the responses etc.


    Thursday, February 5, 2015 11:59 PM
  • Hi Glen,

    I am trying to use ExtendedPropertyType and put in UpdaterItemType as in this code as below. Although it is not updating the Owner field.

    I have tried it both by Propertyname and PropertyID. Although new custom property's canbe added but to change an existing one like 'Owner' ? Would this be the right method.

    2. And Is ProprertyID a fixed value as 0x811f or does it need to be calculated.

    3. Is 'Owner' the right propertname for assigning a task ?

    Thanks a lot.

    Please see code below for reference.

     PathToExtendedFieldType pathExtended = new PathToExtendedFieldType();
                //pathExtended.DistinguishedPropertySetId = DistinguishedPropertySetType.PublicStrings;
                pathExtended.DistinguishedPropertySetId = DistinguishedPropertySetType.Task;
                pathExtended.DistinguishedPropertySetIdSpecified = true;
                pathExtended.PropertyId = 0x811f;
                pathExtended.PropertyIdSpecified = true;
                //pathExtended.PropertyName = "Owner";
                pathExtended.PropertyType = MapiPropertyTypeType.String;

                ciSetAT.ExtendedProperty = new ExtendedPropertyType[1];
                ciSetAT.ExtendedProperty[0] = new ExtendedPropertyType();
                ciSetAT.ExtendedProperty[0].ExtendedFieldURI = pathExtended;
                ciSetAT.ExtendedProperty[0].Item = "";

                SetItemFieldType set1 = new SetItemFieldType();
                set1.Item = pathExtended;
                set1.Item1 = ciSetAT;

                UpdateItemType request = new UpdateItemType();
                request.ItemChanges = new ItemChangeType[1] { new ItemChangeType() };
                request.ItemChanges[0].Item = itemId;
                request.ItemChanges[0].Updates = new ItemChangeDescriptionType[2];
                request.ItemChanges[0].Updates[0] = setstart;
                request.ItemChanges[0].Updates[1] = set1;

    Friday, February 6, 2015 4:38 PM
  • Before writing any EWS code my suggestion would be that you trying changing whatever properties you believe will work with a MAPI editor like OutlookSpy or MFCMapi. As I said previously assigning tasks isn't supported in EWS (I don't have any workaround for this) so you may find even with MAPI some of the properties that need to be set can only be set before the Item in created (if you find a property you can't set in Exchange copy the item out as a MSG file and then try modifying the properties again if you can set them outside of Exchange try then copying the item back in and see if it works). Also the other major problem with task assignment is to create a Task assignment email you need to generate an Ole attachment which is also not supported in EWS . My suggestion would be to use MAPI via redemption its just a few lines of code and will work on any version of Exchange including O365.


    Monday, February 9, 2015 3:07 AM