0

I would like the documents in one folder on a sharepoint page to contain the same documents as that of another page of the same site. So when one page has updated information it synchronizes with the other.

0

If I understand what you need you have a single document library in a site. When a new item is added in that document library you need the document to be copied to another folder within the same doc. library don't you?

If this is the case add an event receiver to the document library with this code:

public class CustomEventReceiver: SPItemEventReceiver
{
    public override void ItemAdded(SPItemEventProperties properties)
    {
        base.ItemAdded(properties);

        SPListItem item = properties.ListItem;
        item.File.CopyTo(item.ParentList.RootFolder.Name + "/Dest Folder Path/" + item.File.Name, true);
    }
}

Regards

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.