AnsweredAssumed Answered

How to Find Element By it's Attribute Name and Attribute Value in PI-Web API

Question asked by Srinivas.T.G on Oct 1, 2019
Latest reply on Oct 9, 2019 by Srinivas.T.G

Hi,

 

Is there a way to find the Element by it's Attribute Name and Attribute Value in PI-Web API.

Input:

AttributeName = SAP_ID

AttributeValue = <<Some Guid>>

 

Expected Output:

Element that contains attribute that matches this attributename='SAP_ID' and attributevalue=<<Some Guid>>

 

I am looking for your help on how to get this done using PI-WEB API.

 

Note:

1. I tried with PI-Web API Crawler search ( But this was not encouraged by my technical lead as it requires additional infra/service to be enabled). 

2. I tried to convince my technical lead to use ExtendedProperties, but PI-WEB API exposes the element extended properties but does not have any option to search based on it.

 

Version Information:

 

ProductTitle: "PI Web API 2018"

ProductVersion: "1.11.0.640"

 

pi-web api query pi web api 

piwebapi pi web pi web api online course pi web api

Outcomes