Solved

Sharepoint workflow document changed event

Posted on 2010-08-27
2
554 Views
Last Modified: 2012-05-10
I am creating a custom SharePoint state machine workflow that handles document review and approval.  I have added a global event driven activity that handles the onWorkflowItemChanged event.  The problem I am having is the event is firing whenever anything about the document chages (metadata, approval status, version, even state changes), and I really only want it to fire whenever the actual FILE changes.  I have browsed through all the properties of the AfterProperties and BeforeProperties fields in the onWorkflowItemChanged event, but can find no way to determine is the actual file is getting changed.  This seems like a huge limitation of the sharepoint workflow engine.  Has anyone encountered this issue before?
Thanks!
0
Comment
Question by:CCHCS-WebTeam
2 Comments
 
LVL 15

Accepted Solution

by:
dp_expert earned 500 total points
ID: 33556482
This is how SharePoint works - it does not difrentiate between document change and metadata change. I do not know any method to give you 100% check if the document itself was modified.
0
 

Author Closing Comment

by:CCHCS-WebTeam
ID: 35487765
It's just fine.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now