Jump to content

How to trigger existing Create Task form remotely?


Mira Black

Recommended Posts

I would like to open the existing "Create Task" form after some actions in the action. It looks like I should use ftrack.action.trigger-user-interface (as trigger remotely) but I don't understand what data should be set. Is it possible in general?
 Something like this

def open_form(self, user_id):
    self.session.event_hub.publish(
        ftrack_api.event.base.Event(
            topic='ftrack.action.trigger-user-interface',
            data=dict(
                type='form', #here?? CreateTaskForm
                success=True,
            ),
            target='applicationId=ftrack.client.web and user.id="{0}"'.format(user_id)
        ),
        on_error='ignore'
    )
Link to comment
Share on other sites

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...