Create TaskItems on exchange
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Create TaskItems on exchange

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Thorpe
Guest





Posted: Mon Jan 31, 2005 8:10 am    Post subject: Create TaskItems on exchange Reply with quote

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

Back to top
Dan Mitchell
Guest





Posted: Mon Jan 31, 2005 8:10 am    Post subject: Re: Create TaskItems on exchange Reply with quote

"Thorpe" <anonymous@msnews.microsoft.com> wrote in
news:e6#GO16BFHA.3664@TK2MSFTNGP14.phx.gbl:
Quote:
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.

See http://www.outlookcode.com/d/sec.htm

-- dan
Back to top
Michael
Guest





Posted: Mon Jan 31, 2005 8:10 am    Post subject: Re: Create TaskItems on exchange Reply with quote

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...
Quote:
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



Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB