Hi Team,
I have a requirement to extract inventory details of all Dataminer elements using web services API as part of our integration activity.
I have reviewed API reference guide and could not locate an API that can help me get all element information.
There are following API that can give details of element corresponding to view or service or protocal.
- getElementsForService
- getElementsForView
- getElemtnsForProtocol
i.e. that to use any of above APIs we need to have list of service or view or protocol.
Please guide based on my requirement what should be ideal approach to fetch required data.
It's possible to get a list of all the elements of the DMS by using GetElementsForView with viewID = -1 (root view) and includeSubViews = true:
var allElements = webService.GetElementsForView(connection, -1, true, false);
Hi Wim,
Tried the method but getting bad request error.
Please suggest.
Thanks Wim for details. I will try it in my instance.