![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
hello
I need to programmatically assign a task. 1.When I assign task & display it,the "To" list appears empty.It is not refreshed.After send ,When I reopen the same Task for first time,it still shows empty "To" list but when opened afterwards it shows "waiting for response from recipient" label. 2.Also when I assign task using "Assign Task" button from ribbon and add myself to recipient ,it shows message "You can not send the task to yourself".But when I programmatically assign task using below code & add myself to recipient list, message is not displayed & task request is sent. Is something wrong/missing in below code? Set ObjSafeTaskItem = CreateObject("Redemption.SafeTaskItem") If Not ObjSafeTaskItem Is Nothing Then ObjSafeTaskItem.Item = ObjTaskItem ObjSafeTaskItem.Save ObjSafeTaskItem.Recipients.Add (strRecipient) ObjSafeTaskItem.Recipients.ResolveAll ObjSafeTaskItem.Assign ObjSafeTaskItem.Display 'msgbox "1" ObjSafeTaskItem.Send Set ObjSafeTaskItem = Nothing End If ObjTaskItem.Close olSave If Not ObjSafeTaskItem Is Nothing Then Set ObjSafeTaskItem = Nothing If Not ObjTaskItem Is Nothing Then Set ObjTaskItem = Nothing Thanks |
Ads |
#2
|
|||
|
|||
![]()
When you make changes to a Redemption Safe*Item Outlook knows nothing about
those changes since they were made at the MAPI level. You need to fake Outlook into thinking something has changed and then save the item after having made the Safe*Item changes. Usually we use something like item.Subject = item.Subject to make Outlook think something changed, then we call Save() on the Outlook item Safe*Item objects have no Save() method so they pass it through to Outlook. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "sd" wrote in message ... hello I need to programmatically assign a task. 1.When I assign task & display it,the "To" list appears empty.It is not refreshed.After send ,When I reopen the same Task for first time,it still shows empty "To" list but when opened afterwards it shows "waiting for response from recipient" label. 2.Also when I assign task using "Assign Task" button from ribbon and add myself to recipient ,it shows message "You can not send the task to yourself".But when I programmatically assign task using below code & add myself to recipient list, message is not displayed & task request is sent. Is something wrong/missing in below code? Set ObjSafeTaskItem = CreateObject("Redemption.SafeTaskItem") If Not ObjSafeTaskItem Is Nothing Then ObjSafeTaskItem.Item = ObjTaskItem ObjSafeTaskItem.Save ObjSafeTaskItem.Recipients.Add (strRecipient) ObjSafeTaskItem.Recipients.ResolveAll ObjSafeTaskItem.Assign ObjSafeTaskItem.Display 'msgbox "1" ObjSafeTaskItem.Send Set ObjSafeTaskItem = Nothing End If ObjTaskItem.Close olSave If Not ObjSafeTaskItem Is Nothing Then Set ObjSafeTaskItem = Nothing If Not ObjTaskItem Is Nothing Then Set ObjTaskItem = Nothing Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I assign a repeating task? | COX | Outlook - Calandaring | 0 | July 19th 07 04:22 PM |
Assign Task without Sending | Cindy Mikeworth | Outlook - General Queries | 3 | April 22nd 07 02:40 AM |
How to assign a Task WITHOUT Exchange | rgsiii | Outlook - General Queries | 1 | December 8th 06 06:12 PM |
Assign task without an acceptance | Jreue | Outlook - Using Forms | 1 | November 1st 06 08:25 PM |
Assign Task problem-Can't accept or assign | DOL | Outlook - Calandaring | 5 | June 29th 06 07:57 AM |