How to assign Tasks to other users using Exchange Web Service.
How to assign Tasks to other users using Exchange Web Service.
Any workaround also would help
April 30th, 2013 7:41am

Hi Aparna_SQL,

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

Free Windows Admin Tool Kit Click here and download it now
May 1st, 2013 9:48am

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.

Cheers
Glen

May 2nd, 2013 9:40am

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.

Jas

Free Windows Admin Tool Kit Click here and download it now
February 5th, 2015 11:59pm

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.

Cheers
Glen

February 6th, 2015 2:59am

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 = "chen@abc.com";

            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;


Free Windows Admin Tool Kit Click here and download it now
February 6th, 2015 11:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics