Show UNID


%REM
    Agent Show UNID
    Description: Returns the selected document UNID ready for Copy/Paste
    Created Nov 13, 2010 by Fernando Levi
%END REM
Option Public
Option Declare

Sub Initialize
	On Error Resume Next	
	Dim s As New NotesSession
	Dim db As NotesDatabase
	Dim doc As NotesDocument
	Set doc=s.DocumentContext
	If Not (doc Is Nothing) Then
		Set db = doc.ParentDatabase
		Dim x As String
		x = InputBox ("UNID DB:DOC","UNID", db.ReplicaID + ":" + doc.UniversalID)
	Else
		MsgBox "Select a document"
	End If
End Sub
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...