Saturday, July 6, 2013

Out-of-box initiation form removal from a re-usable workflow

Recently I was working on a re-usable workflow using SharePoint designer. Everything worked fine, but was stuck on one point, removing the default initiation form attached to the workflow.

When we create a workflow using designer, by default we will get an initation form with it. Even if we delete the form and publish it gets attached again.

I tried searching but couldnt find much on this. After spending sometime found a real simple solution for the same. The details of it is as below:


In SP Designer, click on All Files option available in the left navigation pane under "Site Objects" option.
On this page, we will find workflows option. Select it and we can see our workflow there. Within it we can find the .xoml file of the workflow. Open the file and delete the initation form node and also the reference. Publish the wokflow and make sure you don't override the file (we get a message asking for the same). Once successfully deployed we are done !!!

Hope this helps.!!!



4 comments:

  1. Wow, I've been searching for the answer for this forever. Thank you!

    However how do I launch this from a button the ribbon vs having to tell the user to select "workflows" and then have to launch the workflow.

    ReplyDelete
  2. In other words, when I remove the initiation form, it removes the ability for me to add the workflow to a button in SharePoint designer.

    ReplyDelete
  3. Dear Nitesh Ranjan,
    could explain with more detail?
    I did advanced edit ".xoml.wfconfig.xml"
    and clear from:

    until

    and publish WF without accept overwrite file, but nothing is differ, I did correctly or not?

    ReplyDelete
  4. Dear Nitesh Ranjan,
    could explain with more detail?
    I did advanced edit ".xoml.wfconfig.xml"
    and clear from:

    until

    and publish WF without accept overwrite file, but nothing is differ, I did correctly or not?

    ReplyDelete