Jayer Posted February 9, 2019 Share Posted February 9, 2019 Hello, Currently I'm using hooks TicketOpen and TicketOpenAdmin both of them gives me ticketid. I need same ticket ID when importing/piping emails to department as tickets. TicketPiping not giving it. Have you any idea how to get it? Thanks 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 11, 2019 Share Posted February 11, 2019 From the description of that hook, I believe it fires before TicketOpen or Ticket reply hooks for example and so no ticket number is set because it has not been processed. You could look in the database for the same subject, body, etc to do a best match possible. Are you handling the piping for a special reason that can't be handled by the open and reply hooks/ 0 Quote Link to comment Share on other sites More sharing options...
Jayer Posted February 11, 2019 Author Share Posted February 11, 2019 12 minutes ago, steven99 said: From the description of that hook, I believe it fires before TicketOpen or Ticket reply hooks for example and so no ticket number is set because it has not been processed. You could look in the database for the same subject, body, etc to do a best match possible. Are you handling the piping for a special reason that can't be handled by the open and reply hooks/ Thank you for reply. I'm using TicketOpen and TicketOpenAdmin hook for my code and it works. But I need to do same task when user opens ticket by sending email to department's email. As I see in the description of TicketOpen it only fires when user opens ticket from admin area. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 11, 2019 Share Posted February 11, 2019 Just did a test and ticketopen fires when whmcs does at least pop3 pulling and so would expect piping to do the same as well as the other ticket reply hooks. 0 Quote Link to comment Share on other sites More sharing options...
Jayer Posted February 13, 2019 Author Share Posted February 13, 2019 On 2/11/2019 at 11:47 PM, steven99 said: Just did a test and ticketopen fires when whmcs does at least pop3 pulling and so would expect piping to do the same as well as the other ticket reply hooks. I have checked it too. It works. Thanks for replies. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.