PC Review


Reply
Thread Tools Rate Thread

customised form not saved in sent messages

 
 
Rikkart Van Gassen
Guest
Posts: n/a
 
      25th Jun 2008
Hi,

I'm using Outlook 2003, and have created a series of forms linked by Actions.
Content :
Employees create a training request with details and motivation, send it to
Supervisor. Supervisor chooses to support this (Action: new reply-only form),
and sends on to HR to check for alternatives, and so forth.
Problem :
The reply-only form is not saved in the supervisor's Sent Items, but does
reach HR and cc to the Employee. I'm attaching my VBScript below.
Background :
- The forms are in an Organizational Forms Library on the company server
- The message class is "IPM.Note.Training B1" etc.
- The action is a Forward, include original message text
- I have unchecked the "Save form definition with item" checkbox
- I've tried Item.Save in the Item_Send, but nothing happens.

What should I do, what can I check?
Thanks,
Rikkart


Function Item_Open()
If Item.Sent="False" Then
Item.Subject=""
Item.CC=Item.UserProperties("Employee Name")
End If
End Function

Function Item_Send()
Item.UserProperties.Find("HR Name").Value = Item.To
Item.UserProperties.Find("BudgetOwner Name").Value = Item.BCC
Item.BCC = ""
Subject1="Supervisor supports Training Request :
"+Item.UserProperties("Training course title")
Subject2=" for "+Item.UserProperties("Employee Name")+" (DonTR)"
Item.Subject=Subject1+Subject2
Item.UserProperties.Find("Training Spvsupp Date").Value=Date
Item.UserProperties.Find("TRstatus").Value="SpvSupp"
End Function

< I also have code on Item_Read and CommandButton1_Click(), but don't think
they are relevant?>

 
Reply With Quote
 
 
 
 
Rikkart Van Gassen
Guest
Posts: n/a
 
      27th Jun 2008
If ever anyone runs into a similar problem : somehow the
MailItem.DeleteAfterSubmit property had been set to True.
Adding "Item.DeleteAfterSubmit = False" in my code prevents future/user
problems

Thanks to Sue Mosher:
http://www.outlookcode.com/threads.a...messageid=6919


"Rikkart Van Gassen" wrote:

> Hi,
>
> I'm using Outlook 2003, and have created a series of forms linked by Actions.
> Content :
> Employees create a training request with details and motivation, send it to
> Supervisor. Supervisor chooses to support this (Action: new reply-only form),
> and sends on to HR to check for alternatives, and so forth.
> Problem :
> The reply-only form is not saved in the supervisor's Sent Items, but does
> reach HR and cc to the Employee. I'm attaching my VBScript below.
> Background :
> - The forms are in an Organizational Forms Library on the company server
> - The message class is "IPM.Note.Training B1" etc.
> - The action is a Forward, include original message text
> - I have unchecked the "Save form definition with item" checkbox
> - I've tried Item.Save in the Item_Send, but nothing happens.
>
> What should I do, what can I check?
> Thanks,
> Rikkart
>
>
> Function Item_Open()
> If Item.Sent="False" Then
> Item.Subject=""
> Item.CC=Item.UserProperties("Employee Name")
> End If
> End Function
>
> Function Item_Send()
> Item.UserProperties.Find("HR Name").Value = Item.To
> Item.UserProperties.Find("BudgetOwner Name").Value = Item.BCC
> Item.BCC = ""
> Subject1="Supervisor supports Training Request :
> "+Item.UserProperties("Training course title")
> Subject2=" for "+Item.UserProperties("Employee Name")+" (DonTR)"
> Item.Subject=Subject1+Subject2
> Item.UserProperties.Find("Training Spvsupp Date").Value=Date
> Item.UserProperties.Find("TRstatus").Value="SpvSupp"
> End Function
>
> < I also have code on Item_Read and CommandButton1_Click(), but don't think
> they are relevant?>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace Default Contact form with Customised conact form us =?Utf-8?B?U2F0aXNoIEJvZGRhcGF0aQ==?= Microsoft Outlook Installation 0 12th Oct 2006 08:20 AM
Where are customised Labels Saved? =?Utf-8?B?VHJldm9yIFdpbGxpYW1z?= Microsoft Outlook Calendar 1 21st Jun 2006 12:52 PM
How do you create customised error messages in Access? =?Utf-8?B?UmFuZGFsbA==?= Microsoft Access 2 24th Feb 2006 06:32 PM
Customised Outlook Form - help! Jacqui Microsoft Outlook Discussion 2 16th Sep 2004 05:45 PM
Publishing customised form Pennyg Microsoft Outlook Form Programming 5 6th Oct 2003 01:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:09 AM.