Views:

Question:
How can I generate a URL to retrieve data from a file cabinet using the Rest API?

Answer: 
In order to generate a URL, that can be used to retrieve data, please use the following as a guide;

Using Postman

1. When using Postman to test this call, open the "Build the URL to use in GET request" example (This can be found on our DocuWare Developer's Site), and update the server URL, Platform, and FileCabinetId variable to suit your organization.


2. From the Params section, update the sortOrder, fields, and dialogId for what you'd like to use to perform the search with, and the sort order and the fields which appear. 



3. In the Body section, update the JSON for the Condition and Operator that will be used for the search.



Using C# RestSharp

When using C#, we can use RestSharp to make the Rest call to retrieve the data. An example can be found in the following screenshot.

When using Postman, we can generate this code automatically by clicking on the "Code" link, which lies below the save button.
More on generating this code can be found here; KBA-36429.

KBA is applicable for both Cloud and On-premise Organizations.

Comments (0)