0

Access Views API via Axiom Script

I had a use case where I wanted to get the property of a set of tags and vary how I handled them based on that property value. I couldn't find any documented way in https://axiomscripting.canarylabs.com to get properties. I opened a tech support case to ask and they said you can! It's just a few extra steps. I'm documenting this here to help others and so I can find it the next time I need it!

If you look at IDataProvider it has a method called Connect. Connect returns ConnectResult, which has a property called Client of type CanaryViewsAPIServiceClient. This service client has an insane amount of methods.

Including GetTagInfo which returns TagProp. (Full disclosure, I haven't tested this. While I was waiting for this answer I ended up just tweaking the tag names to get what I needed).

Reply

null