K2 blackpearl Product Documentation: Installation and Configuration Guide
Using SmartObjects in SharePoint

SmartObjects in SharePoint

K2 SmartObjects can be associated with SharePoint Lists and Document Libraries.  

SharePoint Lists

SharePoint Lists can be associated with the following K2 SmartObject methods: 

SmartObject Method Description
Get List Will return all matching meta data information of the List Item.  If no search parameters are provided the Get List method will return all meta data information for the List Item.
Load Will load the specified List Item from the List Item ID provided
Create Creates a new List Item on the SharePoint List
Update Updates the specified List Item on the SharePoint List
Delete Deletes the specified List Item on the SharePoint List
Add Attachment Adds and attachment to the specified List Item on the SharePoint List
List Folders Lists the Folders located in the specified SharePoint List

SharePoint Document Libraries

SharePoint Document Libraries can be associated with the following K2 SmartObject methods: 

SmartObject Method Description
Get List Will return all matching meta data information of the Document.  If no search parameters are provided the Get List method will return all meta data information for the Document.
Load Will load the specified Document meta data from the Document meta data specified
Create Creates a new Document on the SharePoint Document Library
Update Document Updates the specified Document on the SharePoint Document Library
Update Document meta data Updates the specified Document's meta data on the SharePoint Document Library
Delete document Deletes the specified Document on the SharePoint Document Library
Retrieve document Retrieves the specified Document from the SharePoint Document Library
Check In Checks in the specified Document on the SharePoint Document Library
Check Out Checks out the specified Document from the SharePoint Document Library
List Folders Lists the Folders located in the specified SharePoint Document Library

  

K2 SmartObjects and SharePoint Content Types integration

Content Types can be defined as a collection of meta data fields.  To learn more about how Content Types work see Microsoft's documentation on Content Types http://office.microsoft.com/en-us/sharepointtechnology/HA101215701033.aspx

When Content Types are enabled on a List , and SmartObjects are created in SharePoint a SmartObject will be created for each Content Type in that SharePoint List.  If a Content Type is therefore deleted the other Content Types and SmartObjects will continue to function.  The SmartObject for that specific Content Type will however not function any more. 

When Content Types are not enabled on a List at the time of creating a SmartObject only one SmartObject will be created for that SharePoint List.  If Content Types should be enabled at a later stage this SmartObject will no longer function and the SmartObjects will have to be recreated or refreshed for this SharePoint List. 

 

 


K2 blackpearl Product Documentation: Installation and Configuration Guide 4.6.10