Tag Info

Hot answers tagged

2

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 ...


2

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 = ...


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 ...


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]".



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