Body field lossing its value when emailed

I’ve been working on a problem for a long time now, and thought I’d see if anyone could offer me any suggestions.

I am appending some text to the message body

field, and right at the point in the code

where the email gets sent (this is notes code,

not mine), the message body looses the text.

In the code below I would expect szDebugHere4 to be the same as szDebugHere5, but szDebugHere5 is blank.

As a test, I added some debugging to the

Common script library, in CSDocSendPrimaryNotice. The code below is copied and pasted from COmmon, CSDocSendPrimaryNotice.

In the code below, the only code added by me is to print the message body before and after the email is sent. Before the email is sent, the

message body is correct, but afterwards, it has

lost the message body!

I’d be really grateful for any pointers if anyone has any ideas!

If (fSendOptions And 1) Then

' first, prepare the backend document for sending

Err = 0

	

' Morph the cal entry into a notice

Call vBEObject.PreSendPrimaryRequest()

	

Stop

Dim szDebugHere4 As String

szDebugHere4 =  "szDebug4 " & vBEObject.document.GetItemValue("Body")(0)

Messagebox(szDebugHere4)

	

Stop

' invoke the (LS) callback object - mail the initial invitation

Call vCallBackObject.SendPrimaryRequest()

	

Dim szDebugHere5 As String

szDebugHere5 =  "szDebug5 " & vBEObject.document.GetItemValue("Body")(0)

Messagebox(szDebugHere5)

	

	

' Revert doc back to appt.

Call vBEObject.PostSendPrimaryRequest(Err <> 0)

	

	'we need to instruct the mailer not to attemplt to route the on-disk calendar entry			

	Call vBEObject.document.ReplaceItemValue("MailOptions","0")	

End If

Thanks,

Josie

Subject: Would need to see the code in vCallBackObject.SendPrimaryRequest() to know.