Re: Create TaskItems on exchange

From: Michael (michael_at_discussions.microsoft.com)
Date: 01/31/05


Date: Mon, 31 Jan 2005 18:13:44 +0100

You can use WebDAV to create/add task from ASP .NET and this will work.
Problem is to send task (task delegation).

Michael
-------------------------------
If you need WebDAV API for Exchange server,
use our component WebDAV .NET for Exchange.
Check out http://www.independentsoft.com

"Thorpe" <anonymous@msnews.microsoft.com> wrote in message
news:e6%23GO16BFHA.3664@TK2MSFTNGP14.phx.gbl...
> I am building an ASP.NET we app and I need to be able to create a task and
> add it to a users task list
> (sending the task will also be ok as they could then click accept in the
> email message through outlook)
>
> I have currently use the Outlook Object model
>
> ApplicationClass outLookApp = new ApplicationClass();
> NameSpace NS = outLookApp.GetNamespace("MAPI");
> NS.Logon("Username","password",false,false);
>
> // Create a new TaskItem.
> TaskItem newTask =
> (TaskItem)outLookApp.CreateItem(OlItemType.olTaskItem);
> // Configure the task at hand and save it.
> newTask.Body = "Do some work now";
> newTask.DueDate = DateTime.Now;
> newTask.Importance = OlImportance.olImportanceHigh;
> newTask.Subject = "This is a test task";
> newTask.Assign();
> newTask.Recipients.Add(someone@there.com);
> newTask.Send();
>
> NS.Logoff();
>
> This way is no good as it means that outlook will popup some security
> warnings which need user input. I need a way to create the tasks and
> add/send the task automatically.
>
> cheers
>
>



Relevant Pages

  • Re: Outlook Security Prompt
    ... your Exchange Server Administrator. ... Alternatively you could create a Web Service (that internally uses WebDAV) ... Here is a good place to start on articles about using Outlook & .NET ... I believe the second site eventually has links to Exchange ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Start/due dates not showing up in OWA when creating thru Webdav
    ... If you need WebDAV API for Exchange server, ... fine with the due date listed as "None" in OWA. ...
    (microsoft.public.exchange2000.development)
  • Re: WebDAV returns 200/OK but property never changes
    ... If you need WebDAV API for Exchange server, ... >> If you need WebDAV API for Exchange server, ... >> use our component WebDAV .NET for Exchange. ...
    (microsoft.public.exchange.development)
  • Re: WebDAV address formatting
    ... I have looked at the data with the Exchange Explorer tool from the Exchange ... is a read-only field and can't be set by WebDAV. ... > Outlook does some magically parsing when you do addresses. ... >> format produced by MS Outlook. ...
    (microsoft.public.exchange.development)
  • Re: Outlook calendar associates with asp calendar?
    ... Outlook client application. ... > "> In an Exchange environment, you can use WebDAV to query the server. ... >>> Is it possible to get data from outlook calendar? ...
    (microsoft.public.outlook.program_vba)