Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to catch the <strong>ItemAdded</strong> event that is triggered automatically each time you upload a file to SharePoint. There are templates for SharePoint Event Receivers within Visual Studio itself (<em>New Project</em> > <em>SharePoint</em> > <em>Event Receivers</em>).</p> <p>The wizard will guide you through the creation of the solution - including which events you would like to handle. Once created, you will see empty event receivers in your solution where you can add the logic to do whatever you want it to do. The '<strong>properties</strong>' object that is passed to each event receiver contains all necessary information regarding the files you've uploaded.</p> <p><a href="http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/03/11/list-event-receivers.aspx" rel="nofollow">This link</a> describes nicely the function of each event that document libraries fire.</p> <p>If you're after a relatively in-depth guide on the subject, have a look <a href="http://karinebosch.wordpress.com/walkthroughs/event-receivers-walkthrough2/" rel="nofollow">here</a>.</p> <p>The alternative method would be to use <strong>SharePoint Designer</strong> to create a <strong>SharePoint Workflow</strong> that is triggered upon item upload - although this is probably the more straightforward method, it ultimately results in a less customisable solution.</p> <p>With regards to <strong>multiple uploads</strong> at the same time, SharePoint event receivers (as far as I'm aware) are in the context of a single item (i.e. one file uploaded), so I would probably either:</p> <ul> <li>Query the document library/database to find items with the same '<strong>DateCreated</strong>' values</li> <li>Use a database to keep a record of uploaded files, log the <strong>upload times</strong> and <strong>file names</strong> and then perform actions based upon matching records.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload