Enable tag history from Ignition SDK

Hello,

I am trying to enable history for Ignition tags when I create tags for a managed tag provider for a custom module via the SDK. However, when I deploy the module, history does not seem to be enabled for most tags (even though History Enabled is set to true) till I edit tag properties and toggle a tag property.

I am setting the tag properties by creating a TagConfiguration object, setting TagHistoryProps parameters, and then using the configureTag method to apply the TagConfiguration. Is there anything different I should be doing in order to ensure that history is successfully enabled for each tag?

Thanks!

I figured out the issue. In case this helps anyone in the future - I was creating the tags and applying the tag properties during setup (as in the example at ignition-sdk-examples/managed-tag-provider/managed-tag-provider-gateway/src/main/java/com/inductiveautomation/ignition/examples/mtp/ManagedProviderGatewayHook.java at 92813eb6e9372704926eebca870e3e48b607e487 · inductiveautomation/ignition-sdk-examples · GitHub). When I moved tag creation and configuration to startup, this solved the issue.

3 Likes