AnsweredAssumed Answered

Retrieving a subset of attribute values using the PI Web API

Question asked by Lonnie Bowling Champion on Jan 7, 2016
Latest reply on Jan 8, 2016 by bshang

Hi Everyone,

 

I'm trying to determine the most efficient way to get a subset of attribute values if I have the WebId of an element. StreamSet is working find to make bulk calls such as:

 

/piwebapi/streamsets/{webId}/end

 

That returns all the values, but I can't see a way to get just a subset of several attributes. The nameFilter looks like it could do the job, but only seems to allow for exact matches or wildcard searches. The exact match works for a single attribute, but I don't see a way to do multiple attribute names like:

 

/piwebapi/streamsets/{webId}/value?nameFilter=att1name+or+att2name

 

I know I could use GetValuesAdHoc, but that requires me to collect all the attribute WebIds, which is an extra call using the element information and more overhead.

 

Any ideas?

 

Thanks,

 

Lonnie

Outcomes