Skip to main content

hi friends,

Good day,

is there any method or dll to list all the file name and k2 artifacts from particular directory?

 

For example, There is a folder called "K2Project", where in I have all smart forms, objects, workflows, libraries (sharepoint). I would like know how to list all the forms, objects etc from K2Project folder. So, is there any method or dll available? 

 

Adding to that, I would also like to display in Data grid view using VS 2015. 

 

Please let me know if someone can help.

 

Thanks,

Hi,


 


Perhaps, you can use the system Category Data SmartObject for this scenario.


This requires that you know the category id ahead of time.  In my example, I can get the category id when browsing to AA folder. The id is in the URL path.


1. Let's say I have a 'AA' category and this category has a few K2 artifacts. The category id is 253.



2. Use the Category Data > ListByCategoryID method to return K2 artifacts of AA category.


System > Management > Categories > SmartObjects > Category Data.



 


Reply