sharepoint-workflow

How to check if a document is checked in, in SharePoint Designer Workflow?

I am trying to create a SharePoint designer workflow which should be triggered every time a document is checked in. How do I pause till the document is checked in? Will the condition Wait For "Checked Out To" "To Be Empty" work fine? Some posts on MSDN and CodePlex indicate that this might throw an error. ...

is this feature available while creating sharepoint workflow for a list ?

I have a sharepoint list that has a number column call xyz i am creating a sharepoint designer workflow for that list in which i want to use update this list item action if we chose actions as update this list item then chose the list as current item then chose set this field -> xyz to this value -> { how can i select here current valu...

How can I check in a MOSS Designer workflow if a user is a member of a given group?

Hi there, I'm building a basic workflow through MOSS designer, as part of one of the conditions, I'm trying to determine whether or not I can determine whether or not the the user that created the workflow instance is a member of a particular group, if so act in one method otherwise just don't. None of the built-in actions seem to be ab...

How to copy attachments from a List into a document library via workflow activity

Hi there, I currently have a task list, some of them contain file attachments. As part of a new workflow I'm creating in MOSS Designer I need to copy the attachments to files in a document library. What is the best way to do this? Is there an activity already made for this? Thanks! ...

How do I trigger a Sharepoint Workflow from code?

I have a workflow that is triggered by the creation of a list item and sends out an email when the list item is created. If I create a new item in that list through the Sharepoint front end it sends the email. I have a small console application designed to set the list item through the Sharepoint API. This is run as a scheduled task on...

How to trigger a SharePoint workflow on clicking a link item in the list

Guys, I have a sharepoint list and user will click 'start now' link in that list, then, I have to start a workflow. How this can be achieved. Please advice! Thanking you. ...

Share Point Foundation 2010 - Failed to Start Workflow

I am using SharePoint Foundation (Sharepoint 2010) to develop a workflow in Visual Studio with an ASP.NET Workflow Initiation Form. I use this form to set some properties on the share point list item on which the workflow instance is being started. Sometimes I get an Error message in the brwoser window, something like: Error Failed%...

Creating a Sharepoint Workflow task in a specific task list?

Hi, I'm developing a sequential Sharepoint Foundation (Share point 2010) workflow in Visual Studio. I can create tasks no problem using a CreateTask activity, but I can't work out how to create the task on a specific task list (i.e. a task list other than the one associated with the workflow). How can I specify the task list on which ...

SPWorkflowTask.AlterTask throws "Specified method is not supported"

Hi, I'm trying to call AlterTask on a newly created Sharepoint task to add extended properties to my task, and a NotSupportedException is thrown. What's going on? ...

How to filter lookup columns (which also contain lookup columns) in SharePoint 2010?

I have several SharePoint lists: booking calendar, hot desks and location. The calendar has hot desk as a lookup column (linked to the hot desks list). The hot desks list also has a lookup column (linking to the locations list). When I add a calendar item I have set up a workflow task to retrieve the location from the hot desks list (b...

Anybody know about adding user to sharepoint group at runtime workflow.

Hi all, I'm developing an custom activity in sequential workflow.This activity's responsibility is get users (from AD) then add one or more user to sharepoint group on a specified site collection. But at runtime, I'm getting a problem like this. Please, see my code snippet. try { SPGroup spGroup; web.AllowUnsafeUpdates = true; //sit...

Launching a sequential workflow from within a state workflow

What is the proper method for launching a workflow from within a running workflow? We are currently using Visual Studio 2010 and the workflow is running is Sharepoint 2010. Previously this workflow functioned in Sharepoint 2007 without issue. After migrating the package to 2010, the state workflow runs normally but does not properly lau...

Cannot complete this action.\n\nPlease try again. --->This is an exception....

Hi all, I'm new in UserProfileManager recently. Now, I'm develop a workflow with UserProfileProperty. And I'm getting a problem at runtime of workflow. If you all do not mind, before I show my code snippet, I want you all see and think about my situation as below: 1. Assume that I 'm running workflow with this account ("domain\user1")...

How to take user input in SharePoint 2010 wokflow on a custom list ?

Hi, I have a business requirement where i need to create a workflow on a custom list where i may have 20-30 custom fields. My question is that in a sharepoint state machine workflow , how do i incorporate User's feedback / comment he may want to give to a user at any level in the worflow. E.g. When a Person at level A submits the pro...

How to stop delay activity hijacking flow from OnTaskChanged activity in state machine workflow

I am creating a state machine workflow using .NET 3.5 in a SharePoint context (though I think the same issue would arise in non-SharePoint context). I needed to implement recurring reminders and followed the pattern discussed here. In one of my states I have two eventdriven activities, holding respectively an OnTaskChanged activity ...

workflow marked as start on update

I have a nintex workflow set to fire when an item is modified. If the workflow modifies an item, will it trigger the same workflow again? ...

Repeated execution of code activity in SharePoint workflow!?

Hi all, I have a custom workflow implementation what requires updation of an external DB. I created a simple workflow for text purpose and found a strange thing! my Db update/insert code is placed in a code activity of the workflow. it seems the code activity is executed multiple times when the workflow is invoked on a simple list item...

Can I add and run a new XAML only workflow in Sharepoint 2010 during runtime?

I would like to create XAML-only workflow then "upload" it to Sharepoint 2010 and manually execute it as I would run it in Windows Workflow Foundation. So far I know I can package my workflow and deploy it as WSP to Sharepoint and then start it either manually or on an event trigger, but this scenario doesn't suit my needs unfortunately...

Sharepoint 2010 workflow failes with "<nativehr>0x80070057</nativehr><nativestack></nativestack>"

I have created a simple Sharepoint 2010 site workflow that creates and manipulates tasks in a list. All my activities execute properly, but when the workflow is about to get to the end (the red point in the diagram :)) some nasty exception happens. Even with the exception the workflow is marked as complete. I have tried to remove the ...

Retrieving user input in Sharepoint workflow

I have a list called Projects. I want UserA to fill in all of the project data except for the code field. I allow this to be done by copying the NewForm.aspx and removing the code input box (and making it non-required) so they can't put in a code value. I have a workflow that is triggered off of a new item being created for the Projects...