AnsweredAssumed Answered

query element by path using PI Web API

Question asked by Xiawen on Jun 26, 2018
Latest reply on Jul 5, 2018 by Xiawen

Hi,

 

I'm new in PI Web API. I tried to use path to query the WebID of a specific element  "Element 1" shown in the following figure:

Capture.PNG

These are my query string:

http://....../piwebapi/elements?path=\\Myserver\Mydatabase\Element Root         --> working!

http://....../piwebapi/elements?path=\\Myserver\Mydatabase\Element Root\Substation A        --> not working!

http://....../piwebapi/elements?path=\\Myserver\Mydatabase\Element Root\Substation A\Element1          --> not working!

I tried to replace the "space" with "%20" but the last two are still not working. I read the documentation for the path syntax and it looks like I'm correct. I don't understand why the first one is working but the other two are not.

 

Can you help me with this issue?

 

Thank you very much!

-Eve

Outcomes