function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Steve BerleySteve Berley 

update FileExtension on ContentVersion

I’m doing a Salesforce to Salesforce migration of files (ContentVersion).  I just noticed that I needed to add the file extensions to the PathOnClient for the files to be visible in preview in the new org.  I didn’t catch it because none of the files in the old org. had extensions and I glazed over that part of the ContentVersion description.

So, I now have 820k files loaded all no FileExtension.  It seems permissions are set so that I can’t edit the field on the CV record.  Does anyone have a suggestion of how to correct this easily?  Do you know if Support can grant update permission to the ContentVersion.FileExtension field?

Thanks
 
PriyaPriya (Salesforce Developers) 
Hi Steve,

You cannot edit a file within Salesforce CRM Content. To edit a file, download it from Salesforce CRM Content to your computer, make your changes, then upload the updated version using the Upload New Version button.

Regards,
Ranjan