create process model to download documents from knowledge center

Hi, we have requirement to create a process model that allows basic users (non-designer/non-admin) to query for specific documents from KC folder and download the returned query result. Can you please advise if this is achievable? There are few KC smart services available but none are to download documents from KC . Thanks

  Discussion posts and replies are publicly visible

Parents
  • Hi ,

    As suggested by Santoshd, Document browser can be used to achieve this test case and you can download the document aswell from KC without any download document link.

    Please refer the code below:

    =load(
    local!selection,
    local!navigation,
    local!rootFolder: cons!KC_Constant,/*Constant containing the knowledge center value*/
    a!sectionLayout(
    label: "Document Picker",
    contents: {
    a!documentBrowserFieldColumns(
    rootFolder: local!rootFolder,
    selectionValue: local!selection,
    selectionSaveInto: local!selection,
    navigationValue: local!navigation,
    navigationSaveInto: local!navigation
    ),
    a!pickerFieldDocuments(
    label: "Selection",
    labelPosition: "JUSTIFIED",
    folderFilter: local!rootFolder,
    maxSelections: 1,
    value: local!selection,
    saveInto: {
    local!selection,
    if(
    isnull(local!selection),
    null,
    a!save(
    local!navigation,
    document(local!selection[1], "folderId")
    )
    )
    }
    )
    }
    )
    )
Reply
  • Hi ,

    As suggested by Santoshd, Document browser can be used to achieve this test case and you can download the document aswell from KC without any download document link.

    Please refer the code below:

    =load(
    local!selection,
    local!navigation,
    local!rootFolder: cons!KC_Constant,/*Constant containing the knowledge center value*/
    a!sectionLayout(
    label: "Document Picker",
    contents: {
    a!documentBrowserFieldColumns(
    rootFolder: local!rootFolder,
    selectionValue: local!selection,
    selectionSaveInto: local!selection,
    navigationValue: local!navigation,
    navigationSaveInto: local!navigation
    ),
    a!pickerFieldDocuments(
    label: "Selection",
    labelPosition: "JUSTIFIED",
    folderFilter: local!rootFolder,
    maxSelections: 1,
    value: local!selection,
    saveInto: {
    local!selection,
    if(
    isnull(local!selection),
    null,
    a!save(
    local!navigation,
    document(local!selection[1], "folderId")
    )
    )
    }
    )
    }
    )
    )
Children
No Data