-1

I have created a SharePoint 2010 workflow to send an email on list. when I add item into list using code, it not triggers the workflow. however when I enter Item manually it works fine.

  • Are you using RunWithElevatedPrivileges? The workflows don't work when you are using System Account to add item.. – Arsalan Adam Khatri Sep 12 '18 at 11:46
  • Yes I am using RunWithElevated, However I need it because not all users have the pemission to create list item. – Ramesh Sep 12 '18 at 12:07
  • Through code, are you able add item? did you check whether the item is there or not? – Arulraj Sep 12 '18 at 12:56
  • @Ramesh this might help sharepoint.stackexchange.com/questions/56751/… – Arsalan Adam Khatri Sep 12 '18 at 13:38
0

A common issue is that workflow not starting automatically as System Account. So don't run the code with system account.

Similar issue post for your reference:

Workflow not trigger after new item created

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.