SharePoint - SharePoint item.Update() using SharePoint API does not invoke workflow, help?

Asked By .NET Reaper
05-Nov-09 12:22 PM
Hi,

I have a form library that has a simple two step workflow that assigns tasks based on a status column change. I have the workflow built in SP Designer that is set to trigger on item add and item edit.

It functions normally when I upload, create and edit an item. But the problem occurs when I try to update the item using SharePoint APIs. Code!

I am doing item.Update(). Have already tried item.SystemUpdate() and all other possible workaround to get the item to update. My code is basically updating the form using filestream and I simply run an item update.

My code is run in the elevated previleges block. Any help guys? Appreciate.

Are you using the SPContext.Current.Site or SPContext.Current.Web ?  Are you using the SPContext.Current.Site or SPContext.Current.Web ?

06-Dec-09 02:08 AM
Make sure you create a new SPSite object inside the RunWithElevatedPrivileges because SPSite or SPWeb objects created outside do not have full control even when referenced inside the delegate.
Create New Account
help
Sharepoint List SQL Trigger causing problems SharePoint I am using SharePoint Server 2007. I am trying to execute a procedure when a SharePoint list is updated. I am using the Trigger on the AllUsersData table. I want to key off of the list ID. I created the trigger below (note that it really does not do anything yet since I am troubleshooting this problem). When I add a record to my sharepoint list I get the following erroror message changes to this list will be discarded. To
Alerts not being sent by SharePoint. . . SharePoint Hi all, I inherited the job of administration of our SharePoint sites, so be gentle. . . We have a number of sites and it would appear that System.ComponentModel.Win32Exception: No mapping between account names and security IDs was done at Microsoft.SharePoint.Portal.ak.g() Any idea what this is? Any help would be much appreciated. SharePoint Setup Discussions SPSNotificationService (1) SharePoint (1) Database (1) itDan, I suspect the problem is with the SERVCIE ACCOUNT which you and check whether the SMTP is configured properly and made sure that the server running sharepoint has proper access to SMTP 2.Alert mails would be sent as bulk-mails and bulk mail functionality 3. Make sure that events are turned-on in the server running sharepoint. Because events should be fired to trigger the alert functionality 4.Alert related details are
retrieving and updating data by custom query in SharePoint SharePoint is it possible to make a custom query to fetch and update data from sql server 2005 in SharePoint designer i make a new data source library and use a custom query to get don't know how to configure update custom command can any buddy help me out SharePoint Development Discussions SharePoint (1) This article might help - http: / / office.microsoft.com / en-us / sharepointdesigner / HA101009081033.aspx#6 you do for Select statement. -Jason Is using a workflow the way to go to trigger commands for forms? keywords: retrieving, and, updating, data, by, custom, query, in, SharePoint description: is it possible to make a custom query to fetch and update data from sql server 2005 in SharePoint designer i make a new data source library and use a
Workflow trigger SharePoint I am using Sharepoint Designer, trying to create a basic set of workflows based on a single list. When single workflow. I know I am missing something really obvious!!! Help??? Thanks for your thoughts - - SharePoint Design Discussions Sharepoint (1) Sharepointdesigner (1) CH100667661033 (1) Workflows (1) Triggers (1) If I understand you right, you detailed here: http: / / office.microsoft.com / en-us / sharepointdesigner / HA102376561033.aspx?pid = CH100667661033 keywords: Workflow, trigger description: I am using Sharepoint Designer, trying to create a basic set of workflows based on a single list. When
Sharepoint Designer: Workflow Not Trigger (On Create Item) SharePoint Hi All, I have created a workflow in SharePoint Designer to send email everytime new discussion is created in the Discussion Forum. I configure if there's an error while workflow starts to run? Appreciate for any help. Thanks. SharePoint Windows Services Discussions SharePoint (1) SPD (1) Areaa (1) That (workflow in SPD) is one of the areaa covered http: / / www.wssv3faq.com / http: / / wss.collutions.com no private e-mail questions please keywords: Sharepoint, Designer:, Workflow, Not, Trigger, (On, Create, Item) description: Hi All, I have created a workflow in SharePoint Designer to