How to copy a profile document

I have to change the name of a profile document, but I have to keep the data.

For example:

data is currently in a single profile document called P_Event_WeddingReception

I need to rename this profile to P_Wedding and make sure the data goes with it.

This is a single profile document, no instances by other names.

The routine I wrote copies the information, but it won’t display.

YES, I rebooted the server to clear any cache issues.

Here’s a bit of the code:

Set collection=db.getProfileDocCollection("P_Event_Wedding")

For x=1 To collection.count

	Set d=collection.getNthdocument(x)

	Call d.remove(True)		

Next





'new profile

Set doc = session.currentdatabase.getprofiledocument("P_Event_Wedding")



'original profile

Set profile = session.currentdatabase.getprofiledocument("P_Event_WeddingReception")	

Msgbox profile.title(0)

Call profile.copyallitems(doc,True)

doc.~$PublicAccess="1"

Call doc.save(True,True)	

Any thoughts on how to rename this profile and keep the data??

I’ve been on this for several hours.

Subject: How to copy a profile document

I figured it out…

Copy items one at a time and do NOT copy $fields

duhhhh…

Subject: RE: How to copy a profile document

You can also use scanEZ…

  • Create a new Profile Document.

  • Copy the items you want to keep.

Copying documents is only one of dozens of tools included in the product.