Solved

Initiation form of a workflow not called even workflow activated

Posted on 2011-02-19
6
735 Views
Last Modified: 2012-05-11
I've been working with and custom .aspx initiation form which I want to integrate into my Visual Studio 2008 SharePoint Workflow. I have done all the steps and can verify that the form works as it should, because if I associate the workflow and allow it to be kicked off manually, the form displays if i kick the workflow off... However, if I set the trigger to be "Start workflow when an new item is created", the form does not display and it goes straight into the code... why does my form not display when the workflow is triggered from a new item, but does if the item already exists??

Is there a way to get around it so that the form does show when a new item is created?
thanks in advance
-Pritesh
0
Comment
Question by:priteshpatel357
  • 3
6 Comments
 
LVL 15

Accepted Solution

by:
dp_expert earned 500 total points
ID: 34939063
Hello

The workflow initiation form will be displayed only if you start workflow manually. If you start it automatically on item creation or modification, then the form will not be displayed. This is becaues both of those events may be kicked of by a number of events (like adding multiple events on a datasheet view, uploading document from an explorer view, etc).

You can create the following workaround, but you will need to code it:
- set the workflow start option to manual
- modify the newform.aspx so that after you submit the new item you will redirect the page to the initiation form of your wokrflow

This way after adding the item you wil lbe able to start a workflow and see your initiation form. It's a bit like when you upload a document into a library and are instantly redirected to the editform.aspx page to edit required columns.
0
 
LVL 15

Expert Comment

by:dp_expert
ID: 34939070
Sorry, after the "This is becaues both of those events may be kicked of by a number of events [..] " there should be the following text:

in which you are unable to show the user the initiation form, so I guess Microsoft took on the approach not to show the form at all.
0
 

Author Comment

by:priteshpatel357
ID: 34944269
Thank you for your reply.
I have question again that reason you gave for the events may kicked off by multiple events(adding multiple updates through datasheet view) but then workflow activativation should not kicked off with out manual intervation, right? but the thing is workfow template activated when new item adding, the only initiation form is not opening before workflow get activated.
0
 
LVL 15

Expert Comment

by:dp_expert
ID: 34944304
The workflows will kick off, only they will not show you the initiation form. The same thing happens when you appload multiple documents - they are added to a library, but their properties are not edited.
It's just the way SharePoint is and sometimes it's not logical in a straightforward way : )
0
 
LVL 12

Expert Comment

by:Hairbrush
ID: 37412111
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question