1

My list item has a workflow which it will send an email if the approval status is submitted. I decided to create a timer job to run every day for sending a reminder (just update the list item to trigger workflow).

It does not work when I trying to spitem.Update();

However, if I try to update this item in sharepoint UI, the workflow will be triggered normally.

Any idea?

0

You could add the code below when updating item.

SPSite.WorkflowManager.Dispose();

For more detailed information, refer to the article below.

SPListItem.Update() not starting workflow.

https://blogs.msdn.microsoft.com/malag/2008/07/11/splistitem-update-not-starting-workflow/

  • SPSite.WorkflowManager.Dispose(); will stop my code :( – king yau Nov 10 '17 at 2:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.