When we are trying to query the PI WEB API, we are having trouble finding the best way to get back all of the EventFrame templates, excluding all other element templates.
Barry is correct. Currently, you must examine the "InstanceType" of the response to determine if a Template is for an EventFrame or not. We are considering doing this on the server side in a future release.
Which endpoint are you calling? One way is to filter client-side via inspecting the InstanceType in the JSON response, but I will see if it can be filtered server-side.
I found a way to do it but i dont think this is the best way possible.
Im doing a call on the web api eventframe search and selected fields only template name.
When i get the array back i took only distinct value from the array
I know that its overkill but i does the job. If someone find another way or just a way to receive distinct value from web api
i would like to know it.
Retrieving data ...