Using BrowseResult from system.tag.browseHistoricalTags()

Has anyone used the function system.tag.browseHistoricalTags? … oricalTags

I can get back the BrowseResult, but it cannot be iterated or passed to a dataset. I can convert it to a string and parse it that way but it seems a stupid way to do it, anyone have any suggestions?

Hoping to bump this with some success :slight_smile:

I’m using the below code from the documentation to pull all of my historical tags, and I have that working fine, I’m printing a list of all my historical tags to my console.

tagPath = '[Internal Historian/default]'

def browse(path=tagPath):
    for result in system.tag.browseHistoricalTags(path).getResults():
        print result.getPath()
        if result.hasChildren():

I’m just having issues getting this data somewhere to make it usable.

I’m attempting to pull the tags and display the historical tag paths in a table. In this install, I do not have a database, hence why I’m attempting to use this function to do this.

1 Like

Nice, thanks