Hi,
Need your suggestion. I need to prepare a report with All Knowledge centre in the environment with their size.
I'm currently doing manually by selecting each KC and copying the size from properties.
Is there a content function to list all these details.
Thanks in Advance
Discussion posts and replies are publicly visible
Create a constant which holds all the knowledge centers available in your environment. You can get output as dictionary, map, or cdt. In my below code i am getting all the properties in dictionary structure. Hope you find this useful
a!localVariables( local!knowledgeCenter: cons!LSME_KC, /* Create constant of multiple & knowlege center type, hold all the KC`s in this knowledge center*/ a!forEach( items: local!knowledgeCenter, expression: { autoApproveForReadOnlyAccess: knowledgecenter(fv!item, "autoApproveForReadOnlyAccess"), changesRequireApproval: knowledgecenter(fv!item, "changesRequireApproval"), communityId: knowledgecenter(fv!item, "communityId"), communityName: knowledgecenter(fv!item, "communityName"), creator: knowledgecenter(fv!item, "creator"), dateCreated: knowledgecenter(fv!item, "dateCreated"), description: knowledgecenter(fv!item, "description"), expirationDays: knowledgecenter(fv!item, "expirationDays"), forum: knowledgecenter(fv!item, "forum"), id: knowledgecenter(fv!item, "id"), isSearchable: knowledgecenter(fv!item, "isSearchable"), name: knowledgecenter(fv!item, "name"), numberOfDocuments: knowledgecenter(fv!item, "numberOfDocuments"), size: knowledgecenter(fv!item, "size"), type: knowledgecenter(fv!item, "type") } ))