Thursday 4 September 2014

How to create smart objects

Steps:
1.Create SharePoint list or document library
2.Open K2 Blackpearl folder from K2 Server (Or from your developer system). Ex: C:\Program Files\K2 Blackpearl
3.Open Bin folder
Ex:C:\Program Files\K2 Blackpearl\Bin
4.You will find "SmartObject service tester", open that
5.You will find list of services, that can be consumed by K2 Blackpearl
6.Under ServiceOnject Explorer, you will find "SharePoint Service V2"
7.Right click on "SharePoint Service V2" , select register service instance. Enter SharePoint URL.
8.Now you have registered your sharePoint in SmartObject.
9.Go to SharePoint Service V2, right click and refresh.
10.Now you will see all List and Libraraies from the SharePoint which you have given in step 7
11.Right Click on the first SharePoint
12.Select Create SmartObjects option
13.Specify the category which is the folder in SmartForms designer
14.Publish the SmartObject.
15.Repeat this process for each of the SharePoint library created

Now your smartobjects are ready, you can use in K2 workflows.