Skip to main content

Posts

Showing posts with the label WorkFlow

Step by Step Approach to Create a Visual Studio SharePoint Workflow (Sequential)

First we need to install and Configure Workflow Manger. You can install it using Web Platform Installer You can find complete guide here ( Prabath’s Blog ).   select the options that you need to run the workflow Manual Item Created Item Changed As a sample WF I’m going to get the “ Age” Column in the item and Write it to log and update a column using a message. Since we need to look the Age Column, i added the LookUpSPListItem to the sequence.  In the LookUpSPListItem you need to set properties to currentitem and currentlist as well as valuable you need to retrieve properties (You can change these on right side property window). Then by clicking get properties VS generates a GetDynamicValueProperties action. In there you need to select the variable as the Source and specify properties you need to retrieve.   Then drag and drop a WriteToHistory Action to the sequence. here you can go to properties and specify the message you need to log to his...

SharePoint 2013 Visual Studio is not going deploying and remain same as previous version.

i created a visual studio workflow and first time successfully deployed it to SharePoint server and it worked fine. But after i modified it; it didn't work.So i found visual studio cashes it in a vssphost5.exe process.      end the process and deployed it again. and it worked :)  

Error 2 Error occurred in deployment step 'Activate Features': System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.WorkflowServices.WorkflowSubscriptionStorageEventReceiver.ItemUpdating(SPItemEventProperties properties) 0 0

This error occurred when i try to deploy a visual studio workflow to the SharePoint. By checking the  ULS i got the following error as well Can't find WorkflowServiceProxy or its service application proxy type name is null To overcome this error we need to install and configure  the workflow manager. Reference : http://prabathf.blogspot.com/2013/02/installing-and-configuring-workflow-for.html

SharePoint Workflow not publishing

Recently i encountered with a major problem. I created a Workflow using a SharePoint designer and publish it. But when i did some changes and publish it is publishing and SharePoint also  showing it as a latest version by putting existing one as a previous version. But  the functionality remain the same. It took many days to identify actually workflow is not publishing to the server, it will publish same old workflow though i modify it. SharePoint Designer cache workflow activities in the local user folder. thus it is actually publishing the cached workflow but not the original one. so use following steps to clear the designer cache. Go to C:\Users\ username and then go to \AppData\Local\Microsoft\WebsiteCache (AppData is a hidden folder so you can use the explorer to access the folder) and Delete the cache which named in your site name.

.NET User Group Session – Introduction to WWF 4.0

This is a WWF 4.0 Introduction session presented by me today afternoon. There were more 70 participant filled with Sithuvil Training room. most of guys asked question in the session as well as after the session. Thank You all who participated. Any questions Let Me know… Introduction To Windows Workflow Foundation 4.0 View more PowerPoint from Melick Baranasooriya

How to Improve Workflow Performance in SharePoint Server 2010

SharePoint workflows are getting  slow for several reasons. in my environment I'm having a problem with following performance issues, therefore in my environment i got following problems. When a item added to the library it takes some times to initiate the workflow. Workflow mail generating is not very fast sometimes. Workflows takes more time to process “Due to heavy load, the latest workflow operation has been queued. It will attempt to resume at a later time” is coming sometimes. I had a custom workflow approval web part and it is taking more than 30 seconds to proceed. Work Done I had a custom workflow approval web part and it is taking more than 30 seconds to proceed. here in my custom web part there is the function which is programmatically updating the workflow. SPWorkflowTask.AlterTask(item, data, false) the last parameter mentioning whether it is synchronous asynchronous. if  is it true it it will wait until workflow schedule accept the workflow task. ...

SharePoint Custom Workflow activates development

Custom workflow in SharePoint View more presentations from Melick Baranasooriya

How to get User’s Information in the SharePoint Workflow

We can use SharePoint user profiles to get the users information in a SharePoint  workflow. For an example by providing the Users AccountID/Account Name we can get the user’s information. Thus this will address the questions such as How to get User’s First Name in the SharePoint Workflow How to get User’s Last Name in the SharePoint Workflow How to get User’s Birthday  in the SharePoint Workflow How to get User’s Email in the SharePoint Workflow How to get User’s Manager in the SharePoint Workflow as well as huge information list that will populated by the user profile service.

How to add a custom visual studio workflow to SharePoint designer

This article explains step by step guide line to add a custom visual studio work flow to the SharePoint designer. In here I'm using   VS 2010 and SharePoint 2010. Create  a Empty Sequence Work Flow project. then select .Net Framework 3.5 and select the Sequential Workflow Project.   in this sample we are going to add custom string functionality to the SharePoint designer. after creating the project you will get a blank activity as follows. then delete that activity and add the Activity item to the project as above. I named that as subStringAfterText.cs after that you will get a blank Sequence Activity. Add references to the Project After that you need to add Microsoft.SharePoint.dll and Microsoft.SharePoint.WorkflowActions.dll to the project. those dlls can be found in the following paths. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\Microsoft.SharePoint.dll C:\Program Files\Common Files\Microsoft Shared\Web Serve...