Tag Info

Hot answers tagged

3

I've managed to make this work by using the InfoPath userName() function then passing the value back to my workflow with the extended properties of the task the opened form is associated to. Not sure if this is the best (only?) way, but it works. Just one thing to be aware of. Some fields in the external properties are GUIDs so you might need the ...


3

NOTE: This solution doesn't work for Site workflows You can use this code snippet (Get current user in workflow sharepoint context (C#)) public static SPUser GetCurrentUserInWorkflow(Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties workflowProperties) { string ModifiedbyUserName = ...


2

I think this can be good starting point: Workflow Task Forms (SharePoint Foundation) You can specify custom forms for the tasks in your workflow. Because tasks are SharePoint items that are assigned a content type, however, the content type determines the custom forms used with the task type. And here is one walkthrough that looks promising: ...


2

State machine is a model of behavior composed of a finite number of states, transitions between those states, and actions. Microsoft Visual Studio 2010 provides a State Machine Workflow template that enables you to build workflow solutions for Microsoft SharePoint 2010 by using a graphical design surface. Unlike sequential workflows, which transition from ...


1

Are you connected to the SQL DB in your WF solution and referencing that database? You should be able to query the database and return your result (which will be a username) and pass that parameter to the string. SqlConnection sqlConnection1 = new SqlConnection("Your Connection String"); SqlCommand cmd = new SqlCommand(); SqlDataReader reader; ...


1

The answers I researched only provided creating a copy of the WrkStat.aspx page in the 14 HIVE which is not best practice. What I came up with was to create a LogHistoryEvent which creates a comment for each state so that I can track the user who approved a certain task


1

Your query returns an SPListItem, however you need an SPGroup to retrieve the distribution list email. To get to the SPGroup object that actually represents the Group itself rather than the name of the Group like you are returning from the List, you need to pull it from an SPWeb (which will be a little trickier since a workflow does not run in the context ...


1

If you only want information about failing workflows without doing any compensation for already occured actions then it's propbably easiest to implement a SPWorkflowEventReceiver listening for SPWorkflowEventReceiver.WorkflowCompleted and then check SPWorkflowEventProperties.CompletionType. This requires SP2010 and will not work if you want to do any real ...


1

Try to use SPWorkflowEventReceiver. If I'm not wrong the WorkflowPostponed is invoked when the exception is thrown. In this method you have access to the SPWorkflowEventProperties. There are ErrorException and ErrorMessage properties that can be used by you.


1

1) Go to List setting 2) Click Advanced Settings 3) change "Read access" to "Only their own" 4) then change "Edit access" to to "Only their own" so it fix your problem ? also create column "assigned to" and click "Modify this view" then go to Filter where you find "Show items only when the following is true:" and set "assigned to is equal to [Me]".


1

I've done this utilizing lookup lists. In my situation the set of approvers was based on the metadata of the item the workflow was being run against. For example the field could be called Team and it looks up to a Teams list which has a Team Name and a Team Leaders (Person or Group) field. Now when a user selects "Marketing" for their team we know that we ...


1

According to the following MSDN article: http://msdn.microsoft.com/en-us/library/ee264171.aspx State machine functionality in Windows Workflow Foundation (WF) was introduced as part of the Microsoft .NET Framework 4 Platform Update 1 (KB2478063) I haven't worked with them myself, but the article is pretty clear on this. Even hands-on lab is ...



Only top voted, non community-wiki answers of a minimum length are eligible