Views:
Question:
How can I return specific documents in the trash bin using the REST API?

Answer:
To retrieve specific documents from the trash bin via the REST API, you can use the "Get Documents" endpoint from the DocuWare Postman Collection. Please modify the request body as follows to filter results according to your criteria:

{
    "Start":0,
    "Count":100,
    "CalculateTotalCount":true,
    "SortOrder":[{"Field":"DELETEDATETIME","Direction":"Desc"}],
    "Expression":{
        "Condition":[
            {
            "DBName":"DOCUMENTNAME",
            "Value":["SearchValue"],
            "DisplayName":"Name",
            "FieldType":"Text",
            "FieldValue":["SearchValue"]
            }
        ],
        "Operation":"And"
    }
}


Please keep the following in mind:
  • Within, DBNAME, "DOCUMENTNAME" corresponds to the "Name" column of the Trash Bin
  • Within Value and FieldValue, replace "SearchValue" with the value you wish to search for.

KBA applicable for both Cloud and On-premise Organizations