I have a scenario where a number of files have been uploaded into SharePoint, and all files have been applied with a generic content type 'Legacy Document'.
I need to programatically change the content type when a user checks out the document / or the user selects 'edit properties' prompting the file to be checked out.
I'm struggling to change the content type using the ItemCheckingOut event, I'm essentially trying to intercept the call, change the CT so the user sees the correct fields on the edit properties page.
When using the ItemCheckoutEvent, there are no 'afterproperties' for me to use, so I'm trying to first checkout the file, update the properties, then systemUpdate, but this is causing numerous failures (save conflicts).
I don't have the option to bulk update all files, as only files that are being editing should have the updated content type.
Force check-out is enabled on the library.
Any ideas how I can achieve this?