Solved

Initiation form of a workflow not called even workflow activated

Posted on 2011-02-19
6
737 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sharepoint data after Hyper-V restore 4 38
VBA name newly created sheet 4 35
sIMULTANEOUS USAGE ON NETWORK-ACCESS 2010-2013 7 77
Check if field exists SPUtility 5 48
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
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
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 a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

710 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