Skip to main content

We're using the Update Documents' MetaData Event within the SharePoint Document Event Wizard to update a document's status as it travels through the workflow.  This update causes a few problems:


1. If you open the document from SharePoint and Edit it and then Edit the Workflow Task, our Workflow fails when it tries to update the status (the document is already locked for editing).
2. The Version # increases.
3. The Modified By and Modified are updated with the system account.


I found this blog entry about updating documents in a SharePoint library without firing events by calling Item.SystemUpdate(false):


http://www.sharepointblogs.com/apichot/archive/2007/05/24/updating-an-item-inside-a-sharepoint-2007-workflow.aspx


Is there a way to do this in the code that is generated by the Event Wizard?  If not, can I do this as a Server Event.  If so, how do I reference the workflowProperties object?  Is it exposed by K2?


 Thanks,


 Michael

Be the first to reply!

Reply