How can I reset an orphan doc with its parent?

Hi, We found group of orphans documents in a restored database, is there a way we can reset the $REF field and put the parent document ID?

Thanks,

Sunny (:

Subject: How can I reset an orphan doc with its parent?

You could just update the $REF field with the UniversalID of the parent document. But I would suggest using the MakeResponse method of the NotesDocument class, then you know it get done properly.Not difficulat at all.

Subject: RE: How can I reset an orphan doc with its parent?

So I would need to create a script for doing that ?

Subject: RE: How can I reset an orphan doc with its parent?

Yes, of course. Unless you use a tool like NoteMan from Martin Scott Consulting, or scanEZ from Ytria, they have built-in functions to make document responses again. But you can write the script to do it in probably shorter time that it woudl take you to submit a Purchase Order to your accounting department. :slight_smile: