Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 888859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:28:16+00:00 2026-05-15T13:28:16+00:00

I’m working on migrating our company’s documents from a generic file server to Sharepoint

  • 0

I’m working on migrating our company’s documents from a generic file server to Sharepoint 2010 and was wondering if there was any way to keep the original Created Date property from the documents so it shows up in Sharepoint with the original Creation date rather than the date it was added to Sharepoint. Is this possible? We’re currently using Sharepoint’s web services in a custom migration program to add all the documents to Sharepoint from the file server, while adding some metadata values along the way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:28:17+00:00Added an answer on May 15, 2026 at 1:28 pm

    It’s not possible using the Standard WebServices, but you could write your own WS with a method like this:

    [WebMethod]
    public void FixFileData(string fileUrl, DateTime created, DateTime modified, string author, string editor)
    {
      Guid siteId = SPContext.Current.Site.ID;
      Guid webId = SPContext.Current.Web.ID;
      try
      {
        SPSecurity.RunWithElevatedPrivileges(delegate
        {
          using (SPSite site = new SPSite(siteId))
          {
            using (SPWeb web = site.OpenWeb(webId))
            {
              SPFile file = web.GetFile(fileUrl);
              SPListItem fileItem = file.Item;
              fileItem[SPBuiltInFieldId.Created] = SPUtility.CreateISO8601DateTimeFromSystemDateTime(created.ToUniversalTime());
              fileItem[SPBuiltInFieldId.Modified] = SPUtility.CreateISO8601DateTimeFromSystemDateTime(modified.ToUniversalTime());
              try
              {
                fileItem[SPBuiltInFieldId.Author]=web.EnsureUser(author);
              }
              catch (Exception)
              {
              // Your loggin code
              }
              try
              {
                fileItem[SPBuiltInFieldId.Editor] = web.EnsureUser(editor);
              }
              catch (Exception)
              {
              // Your loggin code
              }
              fileItem.UpdateOverwriteVersion();
              if (fileItem.ParentList.EnableMinorVersions)
              {
                file.Publish("SPFileUpload");
              }
              if (fileItem.ModerationInformation != null)
              {
                file.Approve("SPFileUpload");
              }
            }
          }
        });
      }
      catch (Exception)
      {
      // Your loggin code
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.