I have a document library which has some custom values, some of which are required to fill out.
When a user uploads a Document sharepoint asks him to fill out those values and refuses to check the document in if they aren't filled out. Which is okay.
This Library also has an EventReceiver attached to ItemAdded which fills out those required fields and automatically checks the item in. This works.
However, the popup querying the user to update the fields happens before the EventReceiver updates all the required fields, which causes the File to already be updated in the Background by the EventReceiver. The user would probably fill out the form and get an error trying to save, saying the Document was last saved by himself at xx:xx.
How can I update the Document's Fields BEFORE that "required field" popup happens?