0

A sharepoint info path form calls this ASMX web service. The webservice inserts items into a sharepoint list like so...

                                    item["Area"] = Area;
                                    item["Problem"] = Problem;
                                    item["Notes"] = notes;                                      
                                    item.Update();
                                    clientcontext.ExecuteQuery();

The record gets inserted into the list but the workflow is unable to trigger. What's weird is that if I try running the same code locally on my machine, I can insert into the list and trigger the workflow.

However, when running the asmx on the sharepoint front end web server, it can insert into the list but will not trigger the work flow. Any ideas why?

3
  • Is it inserting the information using a system account? If so, the workflow will not trigger. Commented Apr 9, 2014 at 18:34
  • Oh I believe so. How would you recommend to get around this?
    – prawn
    Commented Apr 9, 2014 at 18:44
  • Not use a system account to post the data to the web service, use a service account that isn't the system account or use the current users credentials. Commented Apr 9, 2014 at 19:36

1 Answer 1

0

As mentioned in comments for your question. If you call the web service using system account your service updates data also as system account. SharePoint workflows doesn't work correctly with system account. You need to use another account to call you service.

2
  • Would I be able to call it programatically?
    – prawn
    Commented Apr 10, 2014 at 14:48
  • In most cases SharePoint code runs under user who is logged in if you didn't impersonate it. So, if you use not system account to call service, your workflow should be triggered. Commented Apr 10, 2014 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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