Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Initiation form of a workflow not called even workflow activated

Posted on 2011-02-19
6
Medium Priority
?
744 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
5 Comments
 
LVL 15

Accepted Solution

by:
dp_expert earned 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

772 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