Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Is there a way to update a notessession or notesdocument com object?
Feedback Type: Question
Product Area: Domino Server
Technical Area: Application Development
Platform: Windows
Release: 8.5.3
Reproducible: Always

Hi,

thanks to IBM not implementing the ConvertToMIME Function into the COM-Interfaces of the Lotus Domino Objects i need to do a mime-conversion of all documents in my inbox with the Notes C-API.

What i try to achieve is to convert all mail bodys in a certain inbox into a html string that is stored in another database. I cant do this in lotusscript, which would be much easier, since im not able to open a com object with an agent. Thats why i use a windows service, that looks for new mails in the inbox from time to time.

The problem is now: first i need iterate over this documents(GetFirstDocument, GetNextDocument and so on) to get their views and ids with the COM Interfaces. Then i give this document IDs to the C-API to convert them with MMSetMessageContentEncoding and MIMEConvertCDParts. I also do a NSFNoteUpdate at the end.

But the document in the com interface do not get refreshed, when the C-API is done. Thats why i have to reinitialize the whole session, reopen the database and read my document again, after i've converted this documents with the CAPI.

I think this solution is VERY dirty because i have to open 3 notes sessions to do this.

So my question is: is there a way to force the COM-Object NotesDocument to be read again, without reopening the session and the database?

Thanks in Advance.

Best Regards,

Florian


Feedback number WEBB9T5LK6 created by ~Miriam Dwofreeverikle on 01/26/2015

Status: Open
Comments:

Is there a way to update a notesses... (~Miriam Dwofree... 26.Jan.15)
. . using LotusScript (~Ned Nimfanakon... 26.Jan.15)
. . . . Sorry for the confusion i've create... (~Miriam Dwofree... 27.Jan.15)
. . . . . . Did you install the client on the s... (~Fritz Ekfoober... 27.Jan.15)
. . . . . . 64 vs 32 bits? (~Ned Nimfanakon... 27.Jan.15)
. . Thoughts (~Fred Asatumibu... 26.Jan.15)
. . . . deletion is no problem (~Miriam Dwofree... 27.Jan.15)
. . . . . . Deletion forces a document to be re... (~Fred Asatumibu... 27.Jan.15)
. . . . . . . . another misunderstanding. :D (~Miriam Dwofree... 27.Jan.15)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS