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

Move records from Customer B to Customer A

I have an R5 Customer Database with customer records as "Parent" documents, and then employee or contact records underneath the parents as "response" documents. Now Customer A buys Customer b and I want merge the two customers. I want to delete Customer B, and have customer A (parent) adopt all of the contacts from Customer B. To date, we delete all of the records from B, and re-enter under A to get proper inheritance. I have a simple formula agent to fix the inheritance but it will not work in this instance:

SELECT @IsResponseDoc;
FIELD ParentID := @Text($Ref);
Any ideas ?
Write a LotusScript agent that will allow you to select the parent that is buying another parent. Since you have the new parent selected, you will set a variable like new_parent_UNID from the NotesDocument.UNID property of the original document. The next thing it will have to do is prompt you for the parent who is being bought. It will then build a NotesDoucmentCollection using the NotesDocument.AllResponses property. Now that you have that collection, you will simply call NotesDocumentCollection.StampAll( "$Ref", new_parent_UNID ) This will change the $Ref fields to the new parent.

Dig Deeper on Lotus Notes Domino Administration Tools

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.

Please create a username to comment.




  • 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 ...