Find the attribute WebIds by attribute name in the AF hierarchy using PI WebAPI.

I am trying to figure out how to obtain the WEBIds actually values of the attribute named 'attribute1' in full AF hierarchy.

I tried various syntax of the Search query

I found below in the PIWebAPI help however I get either no or unpredictable results

example link

https://myserver/piwebapi/search/query?q:name:attribute1&scope:af:\\sdaf1\test

 

Yields element WebIds instead of attribute WebIds with this syntax- https://myserver/piwebapi/search/query?q=attributename:attribute1&fields=matchedfields;webId;name

The actual attribute name has spaces in it making it further more complex.

 

Does anyone have a simple example of how to obtain attribute values based on attribute name in complete AF Hierarchy with PI WebAPI

 

Thanks!

Parents Reply Children
No Data