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.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.)