AnsweredAssumed Answered

List of PIUnitBatches and Subbatches via vba

Question asked by ThomasMundt on Feb 4, 2016
Latest reply on Jul 14, 2016 by ernstamort

Hi, I am trying to generate a list of all PIUnitBatches and Subbatches via vba like the one I get with the Batch Group function in ProcessBook (see 2nd screenshot).

This Batches and Subbatches were created with the PI Batch Generator and are not the result of the OSIsoft Batch Interface.

 

I tried this code (1st screenshot), but it returns only PIBatches and not PIUnitBatches and Subbatches (highlighted green).

 

Please, could anyone give me a hint?

Thanks, Thomas

 

Outcomes