-1

I have an event receiver.On item updated event i am firing email.condition is like this: I have an document library with two Yes/No columns(i.e Notification & IsActive).If both these conditions are true ,then email will trigger.Its working fine.On item adding event i am changing value of IsActive column to false.It is also working fine.But when I am uploading multiple documents to document library email is not triggerring.I debugged and saw that debugger is not going to the send mail method.If any body knows pls guide.

  • When you debug event receiver, does it hit your breakpoint when trying to upload multiple files? – Slaven Semper Dec 16 '14 at 13:10
  • Maybe you could show us some code, so it becomes clearer how your implementation looks like and what you want to achieve. – Dolgsthrasir Dec 16 '14 at 13:13
0

If your library is configured to require checking out files, your event receiver only fires after an item is updated which happens after item check-in. When you upload multiple documents, the event is not fired until the change is checked in.

You may have more luck with the ItemUpdating. This may fire before the check-in.

You can review the full list of events here and also the order of ItemCheckedIn and ItemUpdated events here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.