Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Size of all KCs in the environment

Certified Senior Developer

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

  • 0
    Certified Senior Developer

    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")
    }
    )
    )