SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After I upload a text file to a document library I would like to copy it's contents to a SQL table. How can I extract the contents before or after it gets in to the document library using workflow? I've run out of ideas.

share|improve this question

You can hook into different event receivers that are triggered by item/document creation, updating and deletion.

These events fire before (synchronously) and after (asynchronously) the document is created, eg. ItemUpdating, ItemUpdated.

Be aware that adding documents will trigger both creation and update events, depending on checkin policies, and since provisioning of documents are split up in adding the binary document and adding meta data.

Read more here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.