0

I have a subsite, where I have three document libraries. Each document library has its own content type.

I have a task workflow that I would like to run on all of the lists. My problem with creating three workflows is that the workflow is triggered programmatically and the number of lists can be increased or decreased using a custom actions page.

If a new list is added by the user I cannot edit the code to start the workflow on the new list. Thus if I have one workflow with one name I can start the workflow regardless of the list it is running on. But every list has its own content type. Is there any way to do this or a way around this problem?

1 Answer 1

0

You can create reusable workflow without any dependency on any Content Type. In this way you can associate one workflow with more than one content type.

7
  • Hi thanks for the quick response, if i create the workflow with no dependency will i be able to lookup information in the three lists when building the workflow?
    – Egor
    May 13, 2014 at 12:39
  • Are you using designer workflow or visual studio workflow? Do you want to lookup in same list or some other list?
    – Aanchal
    May 13, 2014 at 12:42
  • i am using designer, i am fairly new to sharePoint and not very familiar with workflows built in visual studio but if it is possible to do what i am looking for in visual studio the i will do it that way. I want to look up in three lists all different lists all are the same fields but different content types and all in the same subsite.
    – Egor
    May 13, 2014 at 12:51
  • So you can simply query list with the field name. There should not be any issue if content type is different as long as field name is same.
    – Aanchal
    May 13, 2014 at 12:54
  • Okay, i will start working on that now, thank you for the quick reply's and the assistance i really appreciate it.
    – Egor
    May 13, 2014 at 12:58

Your Answer

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

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