Skip to main content
added 14 characters in body
Source Link
DrZ
  • 171
  • 3
  • 4
  • 12

I have this requirement, using WSS 3.0, that when an attachment is added or deleted from a list item, I need to send an email to the users. I'm not having a problem with the emails; it's understanding how the following events work. I'm using the following 4 events:

ItemAttachmentAdding, ItemAttachmentAdded, ItemAttachmentDeleting, ItemAttachmnetDeleted

If I add 2 attachments to an item, I get ItemAttachmentAdding and ItemAttachmentAdded fired for each attachment, which is what I expect. But when I delete 2 attachments, I get ItemAttachmentDeleting and ItemAttachmentDeleted fired only one time eachonce total (for both files). I expect this to behave like the Adding/Added events; both events for each file deleted. And unlike the Adding/Added events, I don't have access to the name of the attachments that were deleted. Seems inconsistent.

Is this the correct behavior for these events? And is there a way to identify the names of the attachments that were deleted?

I have this requirement, using WSS 3.0, that when an attachment is added or deleted from a list item, I need to send an email to the users. I'm not having a problem with the emails; it's understanding how the following events work. I'm using the following 4 events:

ItemAttachmentAdding, ItemAttachmentAdded, ItemAttachmentDeleting, ItemAttachmnetDeleted

If I add 2 attachments to an item, I get ItemAttachmentAdding and ItemAttachmentAdded fired for each attachment, which is what I expect. But when I delete 2 attachments, I get ItemAttachmentDeleting and ItemAttachmentDeleted fired only one time each. I expect this to behave like the Adding/Added events. And I don't have access to the name of the attachments that were deleted.

Is this the correct behavior for these events? And is there a way to identify the names of the attachments that were deleted?

I have this requirement, using WSS 3.0, that when an attachment is added or deleted from a list item, I need to send an email to the users. I'm not having a problem with the emails; it's understanding how the following events work. I'm using the following 4 events:

ItemAttachmentAdding, ItemAttachmentAdded, ItemAttachmentDeleting, ItemAttachmnetDeleted

If I add 2 attachments to an item, I get ItemAttachmentAdding and ItemAttachmentAdded fired for each attachment, which is what I expect. But when I delete 2 attachments, I get ItemAttachmentDeleting and ItemAttachmentDeleted fired only once total (for both files). I expect this to behave like the Adding/Added events; both events for each file deleted. And unlike the Adding/Added events, I don't have access to the name of the attachments that were deleted. Seems inconsistent.

Is this the correct behavior for these events? And is there a way to identify the names of the attachments that were deleted?

Source Link
DrZ
  • 171
  • 3
  • 4
  • 12

Why do I get only 1 ItemAttachmentDeleting event when deleting more than 1 file in WSS 3.0

I have this requirement, using WSS 3.0, that when an attachment is added or deleted from a list item, I need to send an email to the users. I'm not having a problem with the emails; it's understanding how the following events work. I'm using the following 4 events:

ItemAttachmentAdding, ItemAttachmentAdded, ItemAttachmentDeleting, ItemAttachmnetDeleted

If I add 2 attachments to an item, I get ItemAttachmentAdding and ItemAttachmentAdded fired for each attachment, which is what I expect. But when I delete 2 attachments, I get ItemAttachmentDeleting and ItemAttachmentDeleted fired only one time each. I expect this to behave like the Adding/Added events. And I don't have access to the name of the attachments that were deleted.

Is this the correct behavior for these events? And is there a way to identify the names of the attachments that were deleted?