Custom Appointment Form Message Body Deleted upon reply.

Status
Not open for further replies.
T

TWF1aTgw

I'm developing a custom appointment form on outlook 2003. I have an extra tab

that holds user-defined fields including Yes/No and String value fields and

some code that manipulates items in that tab.

I have some code in my form that appends text to the body upon send. The

form is published in the organizational forms and works well except...

When a invitee receives the meeting invite, they can see the message in the

body just fine. But when he/she click's a response (accept, decline,

tentative) the entire message body is deleted and no message is shown.

If I remove my code to deal with the Item_CustomPropertyChange event, the

message body works fine. Some of my code example:

Sub Item_CustomPropertyChange(ByVal Name)

Select Case Name

Case "IsTrue"

Set oPage = Item.GetInspector.ModifiedFormPages

Set oCntrl = oPage("My Tab Name").Controls("My Control")

oCntrl.Visible = Item.UserProperties.Find("IsTrue").Value

Case "Etc"

> ..

End Select

End Sub

Any ideas? Is it typical for an outlook custom form to delete the message

body if some internal error with the user-defined fields and code occurs on

the recipient side?

Any suggestions would be great! Thanks in advance
 
R

RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ

If you are referring to the message that is created when the user chooses to

edit their response to the meetinq request when replying - that is a

different form class: IPM.Schedule.Meeting.Resp. So you'd need to run code

to capture that item, or customize that form class. Also take a look at the

Action for your custom Appointment form - you have finer control over what

happens when a user replies/forwards, such as choosing the form class that is

used for those items.

Eric Legault - , MCDBA, MCTS (SharePoint programming, etc.)

"Maui80" wrote:


> I'm developing a custom appointment form on outlook 2003. I have an extra tab
> that holds user-defined fields including Yes/No and String value fields and
> some code that manipulates items in that tab.
> I have some code in my form that appends text to the body upon send. The
> form is published in the organizational forms and works well except...

> When a invitee receives the meeting invite, they can see the message in the
> body just fine. But when he/she click's a response (accept, decline,
> tentative) the entire message body is deleted and no message is shown.

> If I remove my code to deal with the Item_CustomPropertyChange event, the
> message body works fine. Some of my code example:

> Sub Item_CustomPropertyChange(ByVal Name)
> Select Case Name
> Case "IsTrue"
> Set oPage = Item.GetInspector.ModifiedFormPages
> Set oCntrl = oPage("My Tab Name").Controls("My Control")
> oCntrl.Visible = Item.UserProperties.Find("IsTrue").Value
> Case "Etc"
> ...
> End Select
> End Sub

> Any ideas? Is it typical for an outlook custom form to delete the message
> body if some internal error with the user-defined fields and code occurs on
> the recipient side?

> Any suggestions would be great! Thanks in advance
 
T

TWF1aTgw

Sorry for such a late reply, but wanted to thank you for the help! From your

post above, I figured I could add an If statement to check my message class

before continuing with the procedure. This is what I added:

Sub Item_CustomPropertyChange(ByVal Name)

If Item.MessageClass <> "IPM.Appointment.MyCustomForm" Then

Exit Sub

End If

> ...

End Sub
 
T

TWF1aTgw

Nevermind. Scratch that... it's still not working. Back to the drawing board.

"Maui80" wrote:


> Sorry for such a late reply, but wanted to thank you for the help! From your
> post above, I figured I could add an If statement to check my message class
> before continuing with the procedure. This is what I added:

> Sub Item_CustomPropertyChange(ByVal Name)
> If Item.MessageClass <> "IPM.Appointment.MyCustomForm" Then
> Exit Sub
> End If
> ...
> End Sub
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A Possible to hide ribbon with custom appointment form? Outlook VBA and Custom Forms 3
G Copy Contact field to Appointment Custom Form Field Outlook VBA and Custom Forms 2
Y Creating custom appointment request form with multiple mail recipients Outlook VBA and Custom Forms 5
A Get shared calendar name or id in custom appointment form Using Outlook 0
J Outlook 2010: can't forward appointment on custom form Using Outlook 1
R Static Resources in Custom Outlook Appointment Form Using Outlook 2
M Custom Appointment Form Using Outlook 5
S Send Update of Custom Appointment Form Using Outlook 2
S Custom appointment form NEED ADVISE Outlook VBA and Custom Forms 1
S Custom Form overwriting the default appointment form in outlook 20 Outlook VBA and Custom Forms 1
Rijotech Outlook 2013 Appointment list custom positions? Using Outlook 2
P Create appointment to custom (shared) outlook calendar Outlook VBA and Custom Forms 3
N Appointment Body on Custom Page 2- Hide Default Page Outlook VBA and Custom Forms 2
H add an appointment for a custom calendar, vba excel Outlook VBA and Custom Forms 2
S Custom Contact card - need help creating one Outlook VBA and Custom Forms 1
S Outlook 2019 Custom outlook Add-in using Visual Studio Outlook VBA and Custom Forms 0
S Adding Custom Forms Outlook VBA and Custom Forms 4
Witzker How to get the button Karte ( map) in custom contact form Outlook VBA and Custom Forms 2
B Outlook 2019 Custom Email form - Edit default email form Outlook VBA and Custom Forms 6
D Outlook 365 Custom forms field limit? Outlook VBA and Custom Forms 4
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
M copy field value to custom field Outlook VBA and Custom Forms 0
J Does the .fdm contain my custom form? How to make ol use it? - ol2007 Outlook VBA and Custom Forms 4
J ol2021 custom form not displaying pics Outlook VBA and Custom Forms 37
N "Perform a Custom Action" Outlook VBA and Custom Forms 0
cbufacchi Outlook 365 Populate custom Outlook Appoint form Outlook VBA and Custom Forms 2
C Create Meeting With Custom Form Outlook VBA and Custom Forms 2
FryW Need help modifying a VBA script for in coming emails to auto set custom reminder time Outlook VBA and Custom Forms 0
J custom form not displaying pictures Outlook VBA and Custom Forms 7
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 1
K Font Sizing in Custom Form Regions for Contacts Outlook VBA and Custom Forms 1
V Update new custom field Outlook VBA and Custom Forms 5
D Anyone tell me where custom view settings are stored? Outlook VBA and Custom Forms 9
S Outlook 2016 Arrange tasks by date, additional custom sorting, but still use friendly terms like Today, Tomorrow, This week? Using Outlook 1
K can't get custom form to update multiple contacts using VBA Outlook VBA and Custom Forms 3
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
S Custom Field Cannot Be Displayed In Views Outlook VBA and Custom Forms 2
D Custom Search Folders not refreshing/updating automatically Using Outlook 0
F Validation on custom task form after task acceptance Outlook VBA and Custom Forms 1
K UDF with formula not showing on Calendar custom view. Outlook VBA and Custom Forms 0
S Create a clickable custom column field Outlook VBA and Custom Forms 0
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
G Other users can't see P.2 with custom fields in Form Outlook VBA and Custom Forms 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
S Reference Custom Fields with VBA Outlook VBA and Custom Forms 2
L Custom Form Tutoral? Outlook VBA and Custom Forms 6
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
S Outlook Custom Form Scripting only working when clicking on "Run this form" Outlook VBA and Custom Forms 2

Similar threads

Top