Adding calendar entry via LotusScript

I have been using this code which was working until now.   In fact it still works as long as the recipient of the calendar entry is not using an 8.5.1 template, if the recipient is on an 8.0.2 template - it works fine.

Has there been changes to the docment.Save function?
Print "Adding to " & resp(x) & "'s calendar . . ."        
action = "add"
Set docTemp = docCur.CopyToDatabase(dbTemp)
docTemp.ParentUNID = docCur.ParentUNID
docTemp.ParentDB = dbCur.FilePath
Call docTemp.Save(True, False)
docTemp.ApptUNID = docTemp.UniversalID
Call docTemp.Save(True, False)
Print "Added to " & Resp(x) & "'s calendar Successfully"

Open in new window

mblumelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sjef BosmanGroupware ConsultantCommented:
I suppose the document is saved correctly, but that 851 needs more or different fields in the document. You could try to create an appointment manually, both in R8.0 and in R8.5.1, and then compare the fields that are created, using the Document Properties.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mbonaciCommented:
Try to call
   Call docTemp.ComputeWithForm( False, False )

before saving it.

If that doesn't work you can (besides logical thing Sjef suggested) see here and compare the code:
http://www.experts-exchange.com/Q_21713357.html
0
Sjef BosmanGroupware ConsultantCommented:
Hm, yes, indeed, ComputeWithForm could do the trick... but I think it is of little use, for it is executed in the local mail database and not in the receiver's one, so the local form is used.
0
mblumelAuthor Commented:
Thank both of you very much for lending a hand.   This morning, with a clear head, I stepped through the code and realized I did not re-create a view in the 8.5.1 template that I was using in 8.0.2 to check against prior to adding the entry.

There are no differences between the old/new template as far as programatically creating a calendar entry, the above code works perfectly.
0
Sjef BosmanGroupware ConsultantCommented:
Now really... But thanks! :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.