Menu

How to update a Tickets public log with the results of a WebHook call

1 day ago
1 day ago
  • Tim Hoffman

    Tim Hoffman - 1 day ago

    Hi

    After calling a webhook, I am trying to workout how to update the Public log with the Process response callback.

    The help text says
    "- From the triggering object itself (eg. UserRequest), must be public. Example: $this->XXX

    But after some time, I can't work out how what to call to achieve this.

    I was expecting something like $this->UpdateTicketLog

    Thanks

     
  • Jeffrey Bostoen

    Mind that the callback should be a PHP method that is already defined on the iTop object ($this).

    So you'd need to either extend the iTop object first (or call a static method on a different object instead) which processes the response, and adds the log entry to the ticket.

    ( Additionally - be careful not to end up in a loop where the trigger gets called again after updating the log.)

     

Log in to post a comment.