Q
Problem solve Get help with specific problems with your technologies, process and projects.

Finding the properties of a doclinked Lotus Notes document

SearchDomino.com expert Cregg Hardwick explains different options for retrieving the properties of a doclinked Lotus Notes document in Domino R5 or Domino R6.

I'm trying to follow a doclink in LotusScript (Domino R5). I want to get the properties of the doclinked document. For example, I have a mail(mail1) with a Lotus Notes doclink that is another mail(mail2). I want to copy the body of mail2 in mail1.

To do this, you really need to use the NotesRichTextDocLink class available in Domino R6. This gives you exactly what you are looking for, and the Domino R6 Help contains reasonably useful examples. For a Domino R5 solution, you may have to buy the Midas Rich Text LSX Toolkit from Genii Software, which provides advanced access to Rich Text field properties.

If neither of these is an option, I would suggest you get a copy of the Lotus Notes XML Toolkit. I can no longer find a link to this download, as IBM is more aggressive about pushing us to upgrade than Iris was.

At any rate, using the DXLexporter class exposed by the toolkit, you should be able to dump the Lotus Notes document in question (Memo1) to an XML file. You can then parse the file looking for a node that looks something like this:

<noteinfo noteid='2534a' unid='6D19CA3D04611C288625705B0055F690' sequence='2'>
<created><datetime dst='true'>20050812T103856,80-05</datetime></created>
<modified><datetime dst='true'>20050812T103906,48-05</datetime></modified>
<revised><datetime dst='true'>20050812T103906,47-05</datetime></revised>
<lastaccessed><datetime dst='true'>20050812T103906,47-05</datetime></lastaccessed>
<addedtofile><datetime dst='true'>20050812T103906,02-05</datetime></addedtofile>
</noteinfo>

Then, its a few simple steps to get the target Lotus Notes database, get the link target and render it into a new e-mail using the RenderToRTitem method of NotesDocument. Hopefully, you or one of your colleagues already has a copy of the Lotus Notes XML Toolkit. If you have trouble finding it, you might consider routing the e-mail through a mail-in database in a DominoR6 server.


Do you have comments on this Ask the Expert Q&A? Let us know.
This was last published in May 2006

Dig Deeper on LotusScript

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close