How to access document metadata Identifier field from LScript?

When I view any document in my Notes GUI, I can right click to get Document Properties. There is a tab marked “<+>” that has a field called “Identifier”. In my case, this field always contains a string that begins with “Notes://”, e.g.

Notes://MYSERVER/8525608900586088/5E502A1BAAAF40CA85256197006C1A32/E1DBAC0AD182DE27802571030051D8F5

I can cut and paste any of these into the address field of Internet Explorer and when I hit , I get the document showing up in my Notes GUI. It ALWAYS works.

Here is my question: HOW can I get the Same “url” from within a LotusScript agent? I’ve tried the NotesDocument.NotesURL property, but the returned URL DOES NOT WORK.

It would be helpful if I could put HREF’s to some of our documents in places on our website.

So, can anyone tell me how to get to that Identifier field?

Thank you in advance,

R Q Murray

Subject: How to access document metadata Identifier field from LScript?

Get the servername (the common name will do), the replicaid of the database, the UNID of the default view and the UNID of the document; add notes:// to the front and put a “/” between each.