Jump to content

Event subscription filter


Recommended Posts

What is the best way of subscribing only to events for changes to entities of type "Task" or more specifically a specific type of task.

i.e. something like

session.event_hub.subscribe('topic=ftrack.update and data.entityType="Task"', callback)

It seems as this data is embedded in the Entities list and I can't work  out how to do this is in a string 

e.g. data.entities[0].entity_type="Task"

Or is it simply that this has to be filtered in the callback function?

 

Link to post
Share on other sites
  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...