Skip to main content
replaced http://sharepoint.stackexchange.com/ with https://sharepoint.stackexchange.com/
Source Link

Yes, it should be possible. See this article as reference, and sample code here. In that sample a custom field was developed to achieve the same goal, but you can easily translate that into a ribbon component (button) as well.

yourFile.Item["Created"] = DateTime.Now;
yourFile.Item.UpdateOverwriteVersion();

The sample allows only site admins (Web.CurrentUser.IsSiteAdmin) to use the field.

See this related threadrelated thread too.

Yes, it should be possible. See this article as reference, and sample code here. In that sample a custom field was developed to achieve the same goal, but you can easily translate that into a ribbon component (button) as well.

yourFile.Item["Created"] = DateTime.Now;
yourFile.Item.UpdateOverwriteVersion();

The sample allows only site admins (Web.CurrentUser.IsSiteAdmin) to use the field.

See this related thread too.

Yes, it should be possible. See this article as reference, and sample code here. In that sample a custom field was developed to achieve the same goal, but you can easily translate that into a ribbon component (button) as well.

yourFile.Item["Created"] = DateTime.Now;
yourFile.Item.UpdateOverwriteVersion();

The sample allows only site admins (Web.CurrentUser.IsSiteAdmin) to use the field.

See this related thread too.

Source Link
pholpar
  • 3.2k
  • 1
  • 15
  • 14

Yes, it should be possible. See this article as reference, and sample code here. In that sample a custom field was developed to achieve the same goal, but you can easily translate that into a ribbon component (button) as well.

yourFile.Item["Created"] = DateTime.Now;
yourFile.Item.UpdateOverwriteVersion();

The sample allows only site admins (Web.CurrentUser.IsSiteAdmin) to use the field.

See this related thread too.