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:
I tried to do this reading of mails and exporting them to a desired output in a lotus agent first. But this agent, running on the server, was not able to instantiate com objects with createobject. Always got an error if the agent is running on the server, while it works perfect if running the com object from notes on the same server. I found no solution and took another direction.
So i decided to do all work in a windows service. This windows service is written in c#. From c# there are two ways to access notes. the Lotus Domino Objects over COM. And the nnotes.dll C-Api methods.
The problem is, that the COM objects deliver one part of the functionality i need/want(easy iteration, easy access, very comfortable) and the C-Api delivers another part of the functionality that is not available in the COM objects(Exporting a e-mail body from RTF to Multipart-Html).
But to use this both ways parallel i have to open 3 instances to this notes db at least because they all load a copy of the DB into the memory. First i open the notes db with com, search for the documents i need, get their IDs and open this notesdocument with the C-API. Then i convert all documents to a certain mime type and export everything i need. Then i reinitialize the com-notessession because - as said above - the notes database is (at least partially) loaded into the memory. Saving the changed notesdocument to the disk with the C-API will not lead to an update in the com-notesdocument-object in the memory. I also cant tell this com-object to reload its content from the disk. Or can i?
The overall target is to save E-Mails into a Web-based-CRM-System to make it possible to assign them to a customer. No changes to any notes templates or something like this are allowed(i tried to do this with a new button in the inbox-template called "Add to CRM", but the Notes-IT said IBM cancels any support if there are custom scripts like this, so this was not allowed). The only allowed way to do this was either a agent in a single mail-nsf-database or this windows service.
Feedback response number WEBB9T6DMY created by ~Miriam Dwofreeverikle on 01/27/2015