when we copy document from one database to anothe using copyToDatabase how can i find undocid of second document ? so that if i want to change document in first document i will delete first document in second database initially & copy changed document to second database. to delete first document in second database i have to find undocid of that document.
Hi… A simple thing that you can do is to put a hidden field in the document with a key value. So next time when u want to search for the specific doc, delete and update it, you just need to search the particular document by the specific key and then delete it.
In fact it can be… But I worked more on it and found an easier way around.
When you copy a doc to another database using lotusscript it always returns a handle to the doc copied in the new database. Using that handle you can get the UniversalId of the copied document.
Set ndoc=presentdoc.CopyToDatabse(“Database”)
ndoc.UniversalID ‘’‘’‘’ This will give you the new document’s Universal ID which you can use later…