使用资源管理器视图进行复制和粘贴时,SharePoint列表事件接收器未触发 [英] SharePoint list event receivers not firing when copying and pasting using explorer view

查看:91
本文介绍了使用资源管理器视图进行复制和粘贴时,SharePoint列表事件接收器未触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是交易,我在文档库中注册了多个事件接收器:

Here's the deal, I have various event receivers registered to a document library:


  • ItemAdded

  • ItemAdding

  • ItemFileMoved

  • ItemUpdating

  • ItemAdded
  • ItemAdding
  • ItemFileMoved
  • ItemUpdating

这些事件接收器在所有情况下均按预期工作,APART FROM复制并粘贴到资源管理器视图中。值得注意的是,当从资源管理器视图移到资源管理器视图时,事件接收器会触发!

These event receivers work as expected in all cases, APART FROM copying and pasting into explorer view. It's worth noting that the event receivers do fire off when MOVING from explorer view into explorer view!

还有其他人遇到过吗?有办法解决这个问题吗?

Has anyone else experienced this? Is there a way to fix this?

推荐答案

解决方法:


  • 创建SharePoint Designer工作流,并将其附加到您的文档库中。

  • 在更改或更新项目时使其运行

  • 通过以下操作(无条件)给出一个简单的步骤

  • 当前项目中的更新字段

  • 选择标题字段,将其设置为已更改。

  • Create a SharePoint Designer Workflow, attach it to your Doc Library.
  • Make it run when the item is changed or updated
  • Give it a simple step with the following Action (no conditions)
  • Update field in the Current Item
  • Select the "Title" field, set it to "Changed".

您现在可以从.NET逻辑中捕获事件。

You are probably able to capture the events from your .NET logic now.

这篇关于使用资源管理器视图进行复制和粘贴时,SharePoint列表事件接收器未触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆