Skip to main content
Inspiring
Dec 2, 2021 6:35 AM UTC
Question

how to find all documents belong to certain folder?

I am trying to delete a folder's all documents, at interface expression mode, how to write the code and how to express the document name at a!deleteDocument(document:??????).

Thanks

    22 replies

    stefanhelzle0001
    Brainy
    Dec 2, 2021 7:15 AM UTC
    stefanhelzle0001
    Brainy
    Dec 2, 2021 7:17 AM UTC

    As a!deleteDocument can only delete a single document, you will need to create a process to delete multiple documents.

    Documents in Appian are referenced by their ID either in a variable of type Integer or of type Document.

    Inspiring
    Dec 2, 2021 7:23 AM UTC

    how to get folderId? why each time refresh the interface the folderId return differently?

    stefanhelzle0001
    Brainy
    Dec 2, 2021 7:28 AM UTC

    https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/

    I can neither see your screen, nor your code, nor do I know what you want to achieve, what you tried, what failed or anything that enables me to give you an answer.

    I tried to explain this to you already a few times. It is that simple: No details -> No answer!