.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Starting a workflow from a Calendar Workspace?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#

Hi, on our team site (based on the Case Management for Government Agencies template), I added a Calendar webpart (recurring meetings) and each distinct calendar item has it's own workspace.  This is very convenient to track issues, decisions, objectives...  In each Calendar workspace, there is a "Tasks" list for which I would like to have a workflow adding a item on the "Tasks" list, based on the "Status" field of the "Decisions" list, still on the same Calendar workspace. 

Can it be done?

View Complete Post

More Related Resource Links

SharePoint 2010 Long Starting if start workflow programatically


In SharePoint 2010, I'm starting workflow #2 programatically from my workflow #1. See code below:

					SPList currentList = web.Lists[new Guid(ListId)];
					SPListItem currentListItem = currentList.GetItemById(ListItem);

					//resolve any lookup parameters
					string workflowId = base.ProcessStringField(WorkflowIdentifier);

					//find workflow association by name
					SPWorkflowAssociation workflowAssoc = currentList.WorkflowAssociations.GetAssociationByName(workflowId, Thread.CurrentThread.CurrentCulture);

					if (workflowAssoc != null)
						//start the workflow
						SPWorkflow workflow = site.WorkflowManager.StartWorkflow(currentListItem, workflowAssoc, workflowAssoc.AssociationData, SPWorkflowRunOptions.Synchronous);

And workflow #2  will hang with Starting status (1-10 minutes), Then the workflow #2 status would be modified  to Completed.

I couldn't find how to start the workflow # 2 immediately and complete immediately without several minutes delay

SPD workflow status show "starting" when I create a document from the library !!. and hangs

I have a document library in MOSS 2007. Have created a WF and that starts "autmatically when new item created" In the document library I have created couple of column those are mandatory (required columns) and user has to fill those column while uploading a document as well creating a document from library. WF has ran and completed succefully  when I use "upload" option to load a document.  As you are aware, when we "upload" a document, we will have to fill all "required columns" and the click "check in" command button.  After I do all this, document get loaded and WD ran succesfully. However, the WF is not running when I create a document (.docx) from this library (using "new" button) !!.  I have filled all required field in the document information panel . After save & exit from WORD application, I can see WF status as "starting". But, it never started and completed.  So I did following and found WF worked !! a) After creating document (.docx) using "new" option I found WF status "starting"!. So,  I did "Check-out and Check-in" manually from document library. After doing this,  WF ran and status has been changed as "completed" b) In SPD, I change workflow start option from "Automatic" to "Manually start".&nb

Workflow stuck on starting When using Win 7 / Office 2007

I've recently created custom workflows for a document approval process. At first I set the workflows to be started manually, for testing purposes and everything worked well. However when I changed the workflows to start automatically I started get problems. The workflow progress would stick on "Starting". Im running Win 7 And Office 2007, so i decided to do some troubling shooting on a different machine (XP and 2003) This time the workflow work perfectly...!   It is really strange as to why the workflows work fine on XP and 2003 and not with Win 7 and 2007. Can anybody shed any light on this or had the same problem? Thanks Chris

Disable or Hiding Workspace option when creating a new item in Calendar

Hi, Can any one let me know if there is way to Hide or Remove the WorkSpace option when creating or editing a item in Sharepoint Calendar. I want to Hide or Remove this workspace option in the FARM level.. Is this possible?   Thanks in Advance  

Incoming E-Mail with attachment not starting SharePoint workflow (VS 2008)

I am working on SharePoint 2007 workflow in visual studio 2008. The workflow is attached to an email-enabled list and is supposed to automatically start on incoming email. It works fine when email (without attachment) is sent to the list but the workflow cannot start when the email is sent with attachment. There is no error message but the workflow status field is blank. The attachment field is also blank. When I manually run the workflow, it works fine. This problem happened on Staging and production servers. On Development server, the workflow works fine either way. The list is setup to save attachments. Any help please

Incoming E-Mail with attachment not starting SharePoint workflow (VS 2008)

I am working on SharePoint 2007 workflow in visual studio 2008. The workflow is attached to an email-enabled list and is supposed to automatically start on incoming email. It works fine when email (without attachment) is sent to the list but the workflow cannot start when the email is sent with attachment. There is no error message but the workflow status field is blank. The attachment field is also blank. When I manually run the workflow, it works fine. This problem happened on Staging and production servers. On Development server, the workflow works fine either way. The list is setup to save attachments. Any help please

how to send the mail to attendees in meeting workspace using sharepoint designer workflow

hi, I have created an meeting workspace able to send an email to all atteendeed at starttimevice versa i want to send emails to all attendees at the end time. I want to send mail using spd workflow.How to access the attendees list?

SharePoint 2007 Calendar - add an event to a recurring meeting workspace

Hello all,

I was wondering if someone can answer this problem I am having. 

Simple Question: Are you able to add an additional event into a recurring event which is linked to a meeting workspace?

Long version:

I create an event in a calendar with the recurrence of every monday for the month. (4 dates lets say)  We have a special meeting to add to the meeting workspace, so I add an additional event in the calendar and try to add this date (15th lets say) to that previous meeting workspace series.

My problem is that the ability to add the new date (15th) to the series doesn't show me any options to add to that previous meeting workspace, I can only create a new meeting workspace.

My colleague who has used SharePoint 2003 at another workplace is 100% sure she could do this, however I am at a loss where SharePoint 2007 allows this functionality.

In a new calendar, I tested this theory by creating 3 events with recurring dates and creating an associated meeting workspace with each of them.  Not once did I get the option to add the event to another meeting workspace.  I added an event with no recurrence with an associated meeting workspace, the very next event could add to that meeting workspace which is what I want except to a recurring meeting workspace.

From my analysis, any event that has a recurring series

Workflow keeps status Starting



We use SharePoint 2007 in our organisation, and are developing some simple Workflows with SharePoint Designer.
The thing is that, even the most simple workflows, are not running consistent. Sometimes the workflow goes
from 'in process' to 'completed', but mostly the status of the workflow keeps 'Starting'

I read many forums about this isseue, but stiil I have no idea what i'm doing wrong. Somewhere I got the tip
to put a delay in the action of the workflow, but the result is not satisfied.

Can someone give me a tip?

With kind regards,

activeX error when starting a workflow from inside Microsoft Word


I have a Word 2007 document hosted on a local intranet SharePoint 2007 Server.
When i open the document inside Word 2007 and start a Collect Signature workflow (the word document has some signature lines included), the following ActiveX error si thrown:

Microsoft Office InfoPath
One or more ActiveX controls could not be displayed because either:

1) Your current security settings prohibit running ActiveX controls on this page, or
2) You have blocked a publisher of one of the controls.

As a result, the page might not display correctly.

I managed to find out that the error is generated because of the security level regarding ActiveX controls set on the INTERNET zone.
In the internet zone, all ActiveX controls are restricted to run, but in the LOCAL INTRANET zone are allowed.
Our company security policy does not permit changing the ActiveX settings in INTERNET zone.

If i navigate to the sharepoint site in Internet Explorer, the site is seen correctly in the LOCAL INTRANET zone

Can somebody give me a solution to be able to start the workflow process, without modifing security settings on the internet zone and without upgrading to O

Sharepoint Server 2007. Sharepoint Designer workflow not starting for one user only.


We have created a custom workflow in SPD that is attached to a document library within a MOSS 2007 teamsite.

The workflow is set to trigger when a new item is created in the document library.

Previously, the workflow has worked fine for all users but recently has stopped working for one user only.

For the problem user, what we are seeing is that when a new item is created in the document library, the attached workflow never starts.  There is no error, the workflow just does not get triggered.  However, if the problem user goes to an item in the document library and clicks on the workflow she can manually start it and it works fine with no error.

This user has the same permissions on the site as others who do not have any problem.

In the course of investigating this problem, we have temporarily increased the problem users permissions on the document library to full control (was contribute before) but this has had no effect on the problem.  Authentication is being done via Active Directory.  We have tried removing the user from the site and re-instating her but again this has no impact.

Does anyone have any idea how we could fix this problem or further debug it?

Access denied when starting workflow


I have a workflow that when started by a site collection admin, allows it to start. But if a user starts it they get access denied. I've set the user up with full access to the document library, tasks and workflow settings and still the same. If I then add the user as a site collection admin all is well.

The workflow has been created using sharepoint designer.

I've tried everything I can think of, so any ideas welcome.




Create workflow to create list item in calendar list of a DIFFERENT site collection


I work for a school district.  Each school has a SharePoint calendar.  We set up each school as its own site collection.  I would like to create a workflow that would send their calendar events to a district calendar, which is also its own site collection.

Example,  School A enters creates a new item on their personal school calendar.  They click YES in the column called SendToDistrictCalendar.  The workflow would be triggered to create this same item in the district calendar (which is in a different site collection) when SendToDistrictCalendar is checked YES.

We're using Windows Server 2003 with Windows SharePoint Services 3.0

I am a mid-level SharePoint user.  I would appreciate ANY and ALL help to make this work!!


Starting workflow very slow


When I run my workflow from within visual studio I get more than 800 exceptions between the statements wf.Run(); and syncEvent.WaintOne(). In the output window I see the following exception:

A first chance exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll.

After the syncEvent.WaintOne() I see a lot of "Does not have corresponding Xaml node for: VisualBasicReference<Decimal>" exceptions.

These exceptions decrease the performance very very much. However, when I host my WF in IIS using a WCF service this performance issue seems to be fixed or doesn't exists.

Could someone point me in a direction to solve this annoying problem? Especially this is a problem when demonstrating the debug capabilities of WF.

ps, when I use procmon to monitor the filesystem I shows me a lot of the following records:
12:01:34.6019706 WebDev.WebServer40.exe 6396 CreateFile C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\TypeScopeFile NAME NOT FOUND Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Complete If Oplocked, Attributes: n/a, ShareMode: Read, AllocationSize: n/a

Starting a Approval workflow programatically


Hi all,

I want to start a particular workflow programatically based on the item that is edited in a list. For this I have created all the required workflows on the list using Sharepoint . I have written Eventhandler for ItemUpdating event, and in that I try to start my workflow. The following is the code i use inside the event handler.

public override void ItemUpdating(SPItemEventProperties properties)


SPList oHorizon = properties.OpenWeb().Lists["Horizon Scanning"];

SPWorkflowManager manager = properties.OpenWeb().Site.WorkflowManager;

SPWorkflowAssociation asso = oHorizon.WorkflowAssociations[0];

SPWorkflow workflow = manager.StartWorkflow(properties.ListItem, asso, asso.AssociationData);

Workflow for custom alert on Sharepoint 2010 Calendar



I'm trying to create a Workflow in Sharepoint Designer to send an alert (e-mail) to the group manager of a certain resource every time an item it's created/modified on calendar and it's resource is included. How should I begin this?

Thank you,

To-Do tasks not starting when being assigned from another workflow.


Hi all,

I'm new to doing workflows and i have created a rather straight forward one to manage a leave calander list (Custom List) in SharePoint Designer. 

Here is a baisc overview of the workflow,

  1. User Submits Request -> Gets Email Notification -> Approvers Recieve Email Notification and Assigned TO-DO task
  2. If( leave is approved)-> {conf email to user and email to HR to inform them} else if (rejected) -> {conf email to user}

However the issue that i am having is that the work flow with automatically fire until the TO-DO task which will sit "not started" in thee workflow task list until it is completed manually. When the rest of the work flow will continue along happily.

My question is do i need to run another workflow on the workflow task list or is there a way to force a to-do task to auto complete?

Thanks in advance


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend